How to fix phpMyAdmin 404 Not Found error in Ubuntu

phpmyadminMost webmasters opt for phpMyAdmin to manage their MySQL database on their VPS or dedicated server, but sometimes you may end up getting 404 “Not Found” error when you point your browser to phpmyadmin installation (say like: http://127.0.0.1/phpmyadmin). This error is most likely caused by not selecting “Apache 2″ during the installation. To fix it, you must redo the phpmyadmin installation.

Enter the following in your terminal:

sudo dpkg-reconfigure -plow phpmyadmin

Reinstall database for phpmyadmin: Select “No”

phpmyadmin installation

Web server to reconfigure automatically: Select “apache 2″

phpmyadmin installtion

It should work now. If not, do the following to include the phpMyadmin-shipped Apache configuration into Apache:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

Restart apache:

sudo /etc/init.d/apache2 restart

That’s it. Let me if you have any doubts in the comment.

This Post Has 43 Comments

  1. waheed says:

    Hi,
    Thanks for the tutorial, but I still get the 404 Not found !!
    what to do then??

  2. Works on debian;D
    Thanks

  3. Plamer says:

    Thanks! Worked for me(mint)

  4. Thanker says:

    Thanks. Worked with sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf on Ubuntu 11.04. Had installed phpmyadmin and lamp-server using apt-get

  5. Santhosh says:

    I am glad it works for you guys!

  6. phour19 says:

    wow it was that easy. fixed my problem in Ubuntu server 10.04. It took me a minute to figure out how to select “Apache 2″. All you have to do is hit the space bar if anyone else reads this.

  7. Aparna says:

    Thank you!!!
    It worked:) :)

  8. tomas says:

    Thanks, your advice helped me.

  9. 2nd fix got it going right away, you are a rock star!!!

  10. Sebastian says:

    Thanks!! wrote sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf now it works :D

  11. Dolke says:

    Thanks is great worked for me. tyt

  12. naresh says:

    Thanks works well. :)

  13. Falk says:

    thanks! ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf was it!

  14. iSWORD says:

    Works on my Ubuntu 12.04! Thank you!

  15. jan says:

    Awesome, works great. Thx.

  16. russso says:

    I learning from here:
    http://www.robotmedia.net/2011/04/how-to-create-an-amazon-ec2-instance-with-apache-php-and-mysql-lamp/

    I am using ubuntu server 1204 on amazon EC2

    and this
    this
    sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
    really works, 404 error fixed thanks!

  17. Izwan says:

    Amazing tips… Really works for me! ;-)

  18. Jas says:

    Thanks it work great

  19. Dhruv Singh says:

    Thanks a lot man!!
    Works like a charm!! :)
    Thanks again..

  20. Rocker says:

    Thank you, it works perfect!!!!

  21. [...] like http://yourserverip/phpmyadmin and you get error 404 Not Found follow the guide in: How to fix phpMyAdmin 404 Not Found error in Ubuntu . It is for ubuntu but will work on debian [...]

  22. TVM Europe says:

    Perfect with Debian 6 Squeeze: Just omitted Sudo and entered this:

    ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

  23. works on ubuntu 12.04.01 unity ^^
    thanks ;)

  24. japetko says:

    work on ubuntu 12.04
    thans…

  25. moi says:

    Thank you, it worked!

  26. Rex Hagood says:

    Your solution was right on and solved the 404 problem quickly. Thanks.

    I am 70 years old now and couldn’t afford to play on computers without the help you and those like you offer. I thank you so much.

    Rex

  27. Nimesh says:

    Thanx
    your solution working fine

  28. Benny Klotz says:

    Thank’s worked for me. :)

  29. jaca says:

    it`s work ! ubuntu 12.04 LTS

  30. stoked says:

    After 30 minutes of this noob looking through config files, I found your page and voila! – my 404 problem was fixed in 10 seconds! Thanks!

  31. mildz says:

    Thanks! you save my life! :)

  32. Suman says:

    Thank you so so much sir! I was mad finding a solution of this. Your article helped me a lot!

  33. Fixed it – thanks a ton!

  34. Pat says:

    Worked for Ubuntu 12.10. I had to create the link and restart Apache though.

    Thanks!

  35. SRI says:

    Thankzzzzzzzzzzzz.
    It’s work!!!!! on KUBUNTU 12.10

  36. ravi says:

    2nd soluation is worked thanks

  37. Saem Chou says:

    I had this problem, including the phpMyadmin-shipped Apache configuration helped me in this case. On Ubuntu 12.10. Thanks a lot!

  38. dave says:

    really helpful (Ubuntu 10.10 on VBox) – that’s what I was looking for… Thanks!!! :)

  39. pieater says:

    Thx!
    The command
    sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
    worked perfectly for my rspberry pi (wheezy)!
    I adress phpMyAdmin thru port 443 (SSL).

Leave A Reply