Installing LAMP ( Linux, Apache, MySQL, PHP ) in ubuntu 16.04 / 14.04 in single command

Spread the love

Installing LAMP server in Ubuntu 14.04 and 16.04

Installing LAMP ( Linux, Apache, MySQL, PHP ) in Ubuntu server:

Please use the following command to install the LAMP ( Linux, Apache, MySQL, Php ) server.

Above lamp-server^ package is Meta package, Means it includes many other packages. It will install Apache, MySQL, PHP and few PHP modules and all other dependencies. So that we can get rid of manual installation of each package.

Sample Output:

Testing :

Open your web browser and enter the IP Address of your server in the URL box and hit enter. You will be presented with Apache default page like below.

Apache welcome default page

Warning :

Don’t remove the complete Lamp package using


Because lamp-server^ is a Meta Package. It will install many dependencies as part of LAMP server. So if you remove it using apt-get, It will remove all those dependencies.

SSH server is also one of the dependency. So it will remove the OpenSSH Package also.

You will lose connection to your server through SSH. So be careful while uninstalling the LAMP server using above commands.

Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply