How can you access phpmyadmin when it is not in htdocs?

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

How can you access phpmyadmin when it is not in htdocs?

Postby jsherk » 08. January 2009 22:47

I figured out that when I connect to http://localhost from my browser, that I am looking at the c:/xampp/htdocs folder.

What I cannot figure out, is how phpMyAdmin is available when I type http://localhost/phpmyadmin in my browser, but there is no phpmyadmin in the c:/xampp/htdocs folder?

What's the secret/trick that makes it available in directory that it does not exist in?

Thanks
jsherk
 
Posts: 7
Joined: 08. January 2009 22:19

Re: How can you access phpmyadmin when it is not in htdocs?

Postby Nobbie » 08. January 2009 22:50

The secret trick is called "Alias".
Nobbie
 
Posts: 8770
Joined: 09. March 2008 13:04

Re: How can you access phpmyadmin when it is not in htdocs?

Postby Izzy » 08. January 2009 23:15

jsherk wrote:...What I cannot figure out, is how phpMyAdmin is available when I type http://localhost/phpmyadmin in my browser, but there is no phpmyadmin in the c:/xampp/htdocs folder?...

The Alias for phpMyAdmin in the example you posted can be found here: C:\xampp\apache\conf\extra\httpd-xampp.conf

The docs are here:
http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: How can you access phpmyadmin when it is not in htdocs?

Postby jsherk » 09. January 2009 00:00

Thanks... that's pretty cool!!!
jsherk
 
Posts: 7
Joined: 08. January 2009 22:19

Re: How can you access phpmyadmin when it is not in htdocs?

Postby Izzy » 10. January 2009 04:16

jsherk wrote:Thanks... that's pretty cool!!!
Your very welcome...

...and if you want more detailed Alias setup help or indeed any help with any other perceived XAMPP "secrets or tricks" as you put it, then please feel free to create another topic and I am sure someone will be only too keen to assist.

Good luck.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 46 guests