Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I messed up my phpmyadmin, I haven't logged in phpmyadmin for a while, and as a result I forgot my password, so I purge it like so: sudo apt-get purge phpmyadmin.

I did get some error messages asking for my password but I forgot that, so I just pressed ignore, after that, I installed phpmyadmin again like so: sudo apt-get install phpmyadmin. This time I wont be forgetting my password.

But now, when I logging to my phpmyadmin, I get a 404 not found error page!?

How do i completely remove phpmyadmin?

share|improve this question
sudo dpkg-reconfigure phpmyadmin –  Tachyons Mar 2 '13 at 2:10
Can you considering accepting answer. –  Raja Dec 8 '13 at 4:36

3 Answers 3

up vote 10 down vote accepted

You might want to try sudo dpkg-reconfigure phpmyadmin

share|improve this answer

You have to remove total. I mean sudo apt-get purge phpmyadmin*

share|improve this answer
Plz note that there is note that there is no sapce between the 'phpmyadmin' and *. P.S. - cost me a lot yesterday. –  akki Dec 7 '13 at 4:00
@Yes there is no space. –  Raja Dec 7 '13 at 14:16
I was actually telling that to @blade19899, so as to save him from the mistake that i did. –  akki Dec 7 '13 at 16:57

sudo apt-get purge libapache2-mod-php5

sudo apt-get install libapache2-mod-php5

sudo apt-get purge phpmyadmin

sudo apt-get install phpmyadmin

sudo /etc/init.d/apache2 restart

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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