Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using ubuntu-11.04.

I followed these steps on this site:

So far my apache2, php, and mysql are working fine except phpmyadmin... Whenever I run this:


I get this error on my browser:

Not Found

The requested URL /phpmyadmin/ was not found on this server.

Apache/2.2.17 (Ubuntu) Server at localhost Port 80

share|improve this question
Have you restarted the apache server: /etc/init.d/apache2 restart – Tom Aug 2 '11 at 8:52
up vote 59 down vote accepted

Please read this section in Ubuntu wiki. You will need to configure your apache2.conf to make phpMyAdmin works.

gksu gedit /etc/apache2/apache2.conf

Then add the following line to the end of the file.

Include /etc/phpmyadmin/apache.conf

Then restart apache

/etc/init.d/apache2 restart


share|improve this answer
I love you @JohanSJA – Programming Noob Jul 23 '12 at 8:59
No need of manual configurations, apt-get ing is enough to run phpmyadmin – Tachyons Feb 13 '13 at 14:11
I finally got JohanSJA's instructions to work after I restarted the apache server using /etc/init.d/apache2 restart. Also I moved the Include line to the bottom of the file as instructed. – boulder_ruby Jun 16 '13 at 16:34
I included apache.conf at the bottom and restarted apache server afterwards, still getting not found, how can I debug it ? – Sohail Oct 12 '13 at 13:59
This worked for me, just remember to restart apache2 – williamcarswell Jun 18 '14 at 8:39

Tried various different ways.

Finally this, this from ubuntu documentation, worked for me:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo service apache2 reload
share|improve this answer
Worked on 15.10. – Rael Gugelmin Cunha Nov 22 '15 at 11:58

Don't panic ! Just run the following code with root permission in terminal

sudo ln -s /usr/share/phpmyadmin /var/www
share|improve this answer

I faced same problem, I fixed it by running sudo dpkg-reconfigure phpmyadmin

give new username and password

share|improve this answer

Ubuntu 16.04

After installing and setting up user and password in mysql and phpmyadmin execute following command

sudo apt install php-gettext Worked for me...

share|improve this answer

You need to find where phpmyadmin is located, e.g. locate phpmyadmin, some it will return the location, such as /usr/share/phpmyadmin.

Then you can symlink it like this: sudo ln -s /usr/share/phpmyadmin /var/www

Starting Ubuntu 14.04 and up, /var/www is no longer work instead /var/www/html. e.g, sudo ln -s /usr/share/phpmyadmin /var/www/html

Reference: Where to place my local website starting with the 2.4.7 version of apache2?

share|improve this answer

I was facing the same problem.

Firstly check if the directory called /usr/share/phpmyadmin/ exists. If it does, just move it to /var/www/phpmyadmin by executing this command:

mv /usr/share/phpmyadmin /var/www/phpmyadmin

Open your browser and open http://localhost/phpmyadmin. Now it should work.

share|improve this answer
This will break the uninstaller, and will cause installation/upgrade issues. You will need to symlink the directory. sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin should correctly symlink. – Thomas Ward Jul 26 '12 at 15:49

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.