Installing LAMP stack on Ubuntu 10.04 and above involves having access to terminal window and root user.
First install tasksel which is used to execute tasks on system like installation of LAMP.
1. To install tasksel, execute the following command-
sudo apt-get install tasksel
2. Now install PHP, Apache, MySQL
sudo tasksel install lamp-server
Done. Now open a browser window and type “http://locahost”. You will see a message “It Work’s”.