Office
PHP

Tutorials and guides on PHP

Solution to phpMyAdmin throwing a 404 error

Written by: Peter Fisher on June 27, 2012
Tagged under: , ,
Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

I have recently rebuilt one of my Linux boxes and reinstalled  a LAMP stack on Ubuntu 12.04. I installed phpMyAdmin via apt-get in the normal manner but to my annoyance the virtual host was not set up during installation and this meant that http://localhost/phpmyadmin was throwing a 404 page not found error.

After going over my steps and checking  the configuration files I noticed that apache2 had no knowledge of phpMyAdmins configurations.  The fix was to symlink the phpMyAdmin conf file within the apache2/conf.d/ folder like so:

I don’t know why this config file wasn’t symlinked or copied during installation.  I spent a good 30 minutes on this issue so I hope this helps someone facing the same problem.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Peter Fisher is a web developer working in Gloucester UK. Founder of the digital agency Websomatic, author of this blog and the HowToCodeWell Youtube channel. Peter has over ten years of web development experience under his belt

Read all about Peter Fisher

Leave a Reply

Your email address will not be published. Required fields are marked *

One Response

Dan says:

Awesome, it took me one minute to find and apply the solution thanks to you! I owe you a beer… Thanks again!