How to remove/uninstall the entire LAMP layer?

Asked

Viewed 14,715 times

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?

  • Which system are you using?

  • 1

    @Andréribeiro Linux Mint 17 Quiana

  • All installed via apt?

  • @Andréribeiro Yes, all and any installation was carried out via apt.

1 answer

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
  • To remove apache settings remove the directory /etc/apache2
  • Mysql uses configuration file /etc/my.cnf
  • PHP.ini usually stays in /etc/php5/apache2/php.ini. To know the exact location of the file you can use the function phpinfo().

Source

  • 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

You are not signed in. Login or sign up in order to post.