How To Uninstall Apache, PHP, MYSQL, PhpMyAdmin

For those of you who do not know how to uninstall LAMP, follow these steps :

Open a terminal, you should go to the root before you do the steps that I would give.

The first you have to uninstall phpMyAdmin.

type the following command
# sudo apt-get purge libapache2-mod-auth-mysql phpmyadmin



if asked for confirmation like below :
Do you want to continue [y/n]? y


The second is uninstalling MySQL.

type the following command
# dpkg -l | grep ^ii | grep mysql-server | awk -F' ' '{ print $2 }'



Example: Terminal I give this list.
* mysql-server
* mysql-server-5.1
* mysql-server-core-5.1

So, to uninstall just type # sudo apt-get purge mysql-server mysql-server-5.1 mysql-server-core-5.1



The third is uninstalling apache.

type the following command
# dpkg -l | grep ^ii | grep apache2 | awk -F' ' '{ print $2 }'



Example: Terminal I give this list.
* apache2
* apache2-mpm-prefork
* apache2-utils
* apache2.2-bin
* apache2.2-common
* libapache2-mod-php5

So, to uninstall just type # sudo apt-get purger apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common libapache2-mod-php5



The last is the clean up.
type the following command
# sudo apt-get autoremove




may be useful ... ^_^



Other Articles You May Find:




No comments:

Post a Comment