How to remove / uninstall the entire LAMP layer?

2

I have a web server on which I would like to remove the entire LAMP layer in order to proceed to the root reinstallation of all packages, how can I perform this operation?

    
asked by anonymous 13.01.2015 / 15:39

1 answer

2

To remove only the main packages you can use:

sudo apt-get purge mysql-server apache2 php5

To remove these and all other related packages:

sudo apt-get remove apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql
  • To remove the apache settings, remove the /etc/apache2
  • MySQL uses the configuration file /etc/my.cnf
  • PHP.ini is usually in /etc/php5/apache2/php.ini . To know the exact location of the file you can use the phpinfo() function.

Font

    
13.01.2015 / 18:31