Technical, Web Design

Installing Apache , PHP and Mysql (LAMP ) on Ubuntu and Linux Mint

Step 1 Install Apache

  1. sudo apt-get update
  2. 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

  1. sudo apt-get install mysql-server

after this step it will ask for permissions click yes to all it shows..

Step 3 Install PHP

  1. 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.


and type


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

sudo -i

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..

Hurray that’s done..!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s