How To uninstall LAMP

Remove phpMyAdmin:-

sudo apt-get purge libapache2-mod-auth-mysql phpmyadmin

You’ll be presented with a screen asking if you want to deconfigure the database for phpMyAdmin.
Go ahead and select Yes and hit .
You’ll be asked next if you want to purge the database for phpMyAdmin.Again, select Yes and hit .
It prompts for the database administrator password, but it gives the impression that it’s installing a new database.Enter the correct password, (you created the password when you installed phpMyAdmin), select Ok and hit . The phpMyAdmin removal should now complete.

Remove MySQL:-
Now let’s see if we can remove MySQL. FNow let’s see if we can remove MySQL. First we’ll see what packages are installed relative to MySQL. Go to your terminal and enter:

dpkg -l | grep ^ii | grep mysql-server | awk -F' ' '{ print $2 }'
My system gives this list of packages.
mysql-server
mysql-server-5.1
mysql-server-core-5.1
php5-mysql
So let's get rid of those.
sudo apt-get purge mysql-server mysql-server-5.1 mysql-server-core-5.1irst

we’ll see what packages are installed relative to MySQL. Go to your terminal and enter:

dpkg -l | grep ^ii | grep mysql-server | awk -F' ' '{ print $2 }'
My system gives this list of packages.
mysql-server
mysql-server-5.1
mysql-server-core-5.1
php5-mysql
So let's get rid of those.
sudo apt-get purge mysql-server mysql-server-5.1 mysql-server-core-5.1
You have successfully removed MySQL Server from your system.

Remove Apache:-
First, we’ll use a similar command like in the previous step to check what Apache packages are installed.

dpkg -l | grep ^ii | grep apache2 | awk -F' ' '{ print $2 }'
My results look like this:
apache2
apache2-mpm-prefork
apache2-utils
apache2.2-bin
apache2.2-common
libapache2-mod-php5
So let's remove those.
sudo apt-get purge apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common libapache2-mod-php5.
Cleaning up:

There may be a few stray packages left on your system that you no longer need. Get rid of them with:


sudo apt-get autoremove

Advertisements

About Priyanka Kapoor

Simple, Hardworking & friendly.....
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s