How To Install LAMP On Ubuntu 16.04 With A Single Command

https://sillycodes.com/installing-lamp-linux-apache-mysql-php-ubuntu-16-04-14-04-in-single-command-apt-get/

http://www.sudo-juice.com/install-lamp-server-ubuntu/

sudo apt-get install lamp-server^

as of March 18, 2017:
MySQL version: 5.7.17
PHP version: 7.0.15

Warning :

DO NOT remove the complete Lamp package using:

$ sudo apt-get --purge remove lamp-server^

or

$ sudo apt-get remove lamp-server^

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 along with SSH server/OpenSSH Package and you will lose connection to your server through SSH.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.