phpmyadmin redirects to localhost

Problems with the Windows version of XAMPP, questions, comments, and anything related.

phpmyadmin redirects to localhost

Postby dhinged » 11. September 2011 16:25

When I type in phpmyadmin into my browser address bar, it redirects to localhost and shows the xampp home screen (http://localhost/xampp or in this case, http://phpmyadmin/xampp). If I click the phpMyAdmin link at the bottom left of the page, it goes to http://phpmyadmin/phpmyadmin. How do I just get phpmyadmin to go to phpMyAdmin without having to jump through these hoops?
Posts: 5
Joined: 05. September 2011 00:15

Re: phpmyadmin redirects to localhost

Postby glitzi85 » 15. September 2011 14:21

If you did not change anything this should not happen at all.
I assume you've put
Code: Select all phpmyadmin

into your hosts file, right?

If so, you need to set up VirtualHosts:

Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
  ServerName localhost
  DocumentRoot /xampp/htdocs

<VirtualHost *:80>
  ServerName phpmyadmin
  DocumentRoot /xampp/phpmyadmin

You have to adopt the paths to the real folders!

User avatar
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 77 guests