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?
dhinged
 
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
127.0.0.1 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>

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


You have to adopt the paths to the real folders!

glitzi
User avatar
glitzi85
 
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 121 guests