Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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:

http://localhost/phpmyadmin/

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

4 Answers 4

up vote 24 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
4  
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 at 8:39

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

give new username and password

share|improve this answer

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 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
4  
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 W. Jul 26 '12 at 15:49

Your Answer

 
discard

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.