I can't access http://localhost/phpmyadmin/

user1327157 picture user1327157 · Apr 11, 2012 · Viewed 566.3k times · Source

Problem:

I can't access localhost/phpmyadmin/

before I can access localhost/phpmyadmin/ but today when I'm trying to access this page I got weird page

also I can access localhost/xampp/ without any problem

Question:

How can I solve this problem ?

Answer

Lingani picture Lingani · Nov 16, 2012

what you need to do is to add phpmyadmin to the apache configuration:

sudo nano /etc/apache2/apache2.conf

Add the phpmyadmin config to the file:

Include /etc/phpmyadmin/apache.conf

then restart apache:

sudo service apache2 restart

On windows, I think you can just navigate to the apache2 config file and include the phpmyadmin config file as shown above, then restart apache