Page 1 of 1

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

PostPosted: 08. January 2009 22:47
by jsherk
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

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

PostPosted: 08. January 2009 22:50
by Nobbie
The secret trick is called "Alias".

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

PostPosted: 08. January 2009 23:15
by Izzy
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

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

PostPosted: 09. January 2009 00:00
by jsherk
Thanks... that's pretty cool!!!

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

PostPosted: 10. January 2009 04:16
by Izzy
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.