Install LAMP ( Linux, Apache, MySQL, PHP ) in ubuntu in single command

Installing LAMP server in Ubuntu 14.04 and 16.04

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

Lamp Install – Sample Output:

Testing the LAMP Installation :

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

Uninstall LAMP :

Don’t remove the complete Lamp package using

or

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.

Related Articles:

Additional Reading:

Venkatesh

Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

Leave a Reply