GNU/Linux LAMP Stack Installing LAMP on Ubuntu


Example

Install apache:

sudo apt-get install apache2

Install MySql:

sudo apt-get install mysql-server

Install PHP:

sudo apt-get install php5 libapache2-mod-php5

Restart system:

sudo systemctl restart apache2

Check PHP installation:

 php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'