lknog3:netops:lamp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lknog3:netops:lamp [2019/10/01 20:15] – created lknog_admin | lknog3:netops:lamp [2023/01/31 14:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
- | Login to the vm. change to root user | + | Login to the vm via ssh. change to root user |
< | < | ||
$sudo su | $sudo su | ||
Line 45: | Line 45: | ||
</ | </ | ||
- | Now go to your browser and type **http:// | + | Now go to your browser and type **http:// |
== MySQL Installation == | == MySQL Installation == | ||
Line 83: | Line 83: | ||
type in, | type in, | ||
< | < | ||
- | sudo apt-get -y install | + | sudo apt-get -y install |
</ | </ | ||
the switch –y will automatically put yes on the installation process when it is prompted. | the switch –y will automatically put yes on the installation process when it is prompted. | ||
Line 93: | Line 93: | ||
To check php, lets create a test php file. | To check php, lets create a test php file. | ||
< | < | ||
- | sudo nano / | + | sudo vi / |
</ | </ | ||
**Note**: / | **Note**: / | ||
Line 105: | Line 105: | ||
Now let us call that file in a browser (e.g. http:// | Now let us call that file in a browser (e.g. http:// | ||
- | If your PHP 7 is working you will see all your php server settings in a one single place. | + | If your PHP is working you will see all your php server settings in one single place. |
+ | |||
+ | **For the security of your server make sure you delete info.php after testing** | ||
== Enabling Virtual Hosts == | == Enabling Virtual Hosts == | ||
Line 116: | Line 118: | ||
Create index pages on each directories containing following. | Create index pages on each directories containing following. | ||
< | < | ||
- | sudo nano / | + | sudo vi / |
</ | </ | ||
You may change the content as appropriate. | You may change the content as appropriate. | ||
Line 134: | Line 136: | ||
Default host configuration is located in / | Default host configuration is located in / | ||
< | < | ||
- | sudo nano / | + | sudo vi / |
</ | </ | ||
with the following content, | with the following content, |
lknog3/netops/lamp.1569960947.txt.gz · Last modified: 2023/01/31 14:21 (external edit)