Step 1 Install Apache
- sudo apt-get update
- sudo apt-get install apache2
After this Open Browser and visit http://localhost
it will show you that Apache Server in installed
Step 2 Install MySQL
- sudo apt-get install mysql-server
after this step it will ask for permissions click yes to all it shows..
Step 3 Install PHP
- sudo apt-get install php5
now use terminal and type the cd commands to go to /var/www/html
now create a file there i.e.
Save the code.
and open browser again and go to
it will shows that PHP is install and its Details.
Now LAMP server is install on Your ubuntu System.
Terms and Conditions:
All the commands are need to be performed under root user.
to go to root shell
type in terminal
now it asks for current user password type whatever it may be and hit enter
now you are a root user.
further you can change root password by passwd command..