Installing phpMyAdmin on Ubuntu

I seem to have trouble every time I try to install phpMyAdmin. For those of you who are not familiar, it is a open-source web-based utility that manages MySQL databases.

Today I tried installing it on my Ubuntu 9.04 desktop by running:

sudo apt-get install phpmyadmin

PhpMyAdmin was successfully installed, but I was not able to access it at http://HOSTNAME/phpmyadmin/. I had Apache (web server) and MySQL installed, and I had not made many changes to their configuration.

I found out that adding this line:

Include /etc/phpmyadmin/apache.conf

to the very bottom of:

/etc/apache2/apache2.conf

solves the problem, just as soon as you restart the web server by running:

sudo /etc/init.d/apache2 restart

Thanks to Highub for the solution!

Leave a Reply

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

*

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>