LAMP L
inux, A
pache, M
ySQL, P
HP are external packages. Each package can be configured and installed separately. You may use the following steps to install manually.
Open your terminal and type:
sudo apt-get install php5 mysql-server apache2
The above command will install latest version of PHP which is version 5 and mysql-server with apache http server 2.
You will be prompted in terminal to give a password for your MySQL "root" user
After the the installation finished check Apache is working. Open your favorite browser and type localhost
in the address bar. You should see a message "It works!"
Also check if php is working or if not,
Open your terminal and type: sudo gedit /var/www/info.php
copy and past the following info text
<?php
phpinfo();
?>
Save and exit.
Restart apache:
sudo service apache2 restart
open your browser and type:
localhost/info.php
and you will see the PHP info page.