Jun 272012

phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the World Wide Web.

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.

Good PHP Programming Books

Facebook Twitter Digg Stumbleupon Email

Peter Fisher

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 six years of web development experience under his belt

  One Response to “Solution to phpMyAdmin throwing a 404 error”

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

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>