Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I really need to completely purge my web server on Ubuntu 12.04. I have tried sudo apt-get purge apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin (which hopefully removes all of them). How do I completely purge all of them?

share|improve this question

closed as unclear what you're asking by Ward, voretaq7 Aug 15 '13 at 14:33

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

4  
Reinstall the OS. If that's not an option, be specific about what you feel should be 'purged' that isn't already. –  yoonix Aug 15 '13 at 3:07

1 Answer 1

up vote 4 down vote accepted

First you have to remove Apache and all of it's dependencies.

apt-get purge apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin

and then

rm -rf /etc/apache2; rm -rf /etc/php5; rm -rf /var/lib/mysql; rm etc/mysql

And then reinstall.

If you have any issues with phpMyAdmin, try entering this into the Terminal:

dpkg-reconfigure phpmyadmin
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.