How can I have a maintanance page and use phpmyadmin

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

How can I have a maintanance page and use phpmyadmin

Postby pomp » 12. July 2008 19:19

Hi, I'm hosting my website from my home pc. So the address http://www.mystiquejewelryonline.com/ maps to http://localhost/

I would like to have a site under maintainance page when I'm making changes to the DB using phpmyadmin. So I wrote the page "myindex.php" and copied it to c:/xampp/htdocs. Also I changed Apache's httpd.conf file "DirectoryIndex" so it picks up "myindex.php.

Now when I go to "localhost" I see the site under maintanance page. When I try to go to: http://localhost/phpmyadmin/ I get this message:
Code: Select all
Access forbidden!
     You don't have permission to access the requested directory. There is no index or the directory is read-protected.
     If you think is is a server error, please contact the webmaster

  Error 403

I'm able to go to "localhost/xampp/index.php" and I see the XAMPP for Windows page. All of the links work except "phpMyAdmin" and "Webalizer" (I get the same error page: Access forbidden).

So what am I doing wrong? Thanks for the help
pomp
 
Posts: 2
Joined: 12. July 2008 18:40

Postby LooseCannon » 14. July 2008 15:21

Hello and welcome pomp. Your English is very good and puts many others to shame! :)

I've not got a complete or even helpful answer, because I'm not very experienced and have not got much time right now. Nevertheless, it seems to me that you've in effect replaced the XAMPP localhost web site with your own. Hence, http://localhost/phpmyadmin/ is trying to look at a directory C:\xampp\htdocs\phpmyadmin, which neither exists nor has a default index page. I believe that the default XAMPP website takes you to c:\xampp\phpMyAdmin, but now you're not getting there.

Sorrey, but I've not time to look through the set up, eg httpd.conf at the moment.

To avoid the issue, don't "map" your website to localhost, which remains the XAMPP control panel etc. Use a virtual host for your web site. Search this forum for lots of information thereon.

I hope this quickly written ramble doesn't make things worse. :P
User avatar
LooseCannon
 
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK

Postby pomp » 14. July 2008 20:42

Thanks for the reply Loose. I think that a virtual host can solve my problem. I don't know much about them, but I'll do some research.

My English might be good, but I'm still a novice on Apache :D
Thanks for the info. I'll reply back with an update.
pomp
 
Posts: 2
Joined: 12. July 2008 18:40


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 81 guests