2
I have a web server on which I would like to remove the entire LAMP layer in order to perform root reinstallation of all packages, as I can perform this operation?
2
I have a web server on which I would like to remove the entire LAMP layer in order to perform root reinstallation of all packages, as I can perform this operation?
2
To remove only the main packages you can use:
sudo apt-get purge mysql-server apache2 php5
To remove these packages and all other related:
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 function phpinfo()
.Mysql can use one of many possible locations, all depending on a universe of variants on the Mysql system or version, although the use of the files my.cnf
is performed in cascade. In my case was in /etc/mysql/my.cnf
.
Browser other questions tagged server lamp
You are not signed in. Login or sign up in order to post.
Which system are you using?
– André Ribeiro
@Andréribeiro Linux Mint 17 Quiana
– Zuul
All installed via apt?
– André Ribeiro
@Andréribeiro Yes, all and any installation was carried out via
apt
.– Zuul