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?
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?
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
/etc/apache2
/etc/my.cnf
/etc/php5/apache2/php.ini
. To know the exact location of the file you can use the phpinfo()
function.