Page 1 of 1

Accessing files in sub directories

PostPosted: 27. September 2006 22:12
by ashbyrich
Installed Xampp for windows and seems excellent, although small prob. I can access files in htdoc directory ie http://localhost/ however I get failure if i try and load a file in a sub htdocs/dev/

Interestingly the files in httdoc/xampp/ equating to http://localhost/xampp/ work fine.

error message is

Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.

Error 500
09/27/06 22:23:17
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6

Suspect that its something in httpd.conf...BUt iam a little in the dark.

Any help advice would be gratefully received

PostPosted: 27. September 2006 22:38
by Izzy
Look in the apache error log:
Drag the file into your text editor and paste here the entries that relate to the date and time you tried to access and received the 500 error or you may be able to see for yourself what is wrong and what needs fixing.

however I get failure if i try and load a file in a sub htdocs/dev/

I don't see a directory dev in the DocumentRoot directory xampp\htdocs do you?
http://localhost/dev will work.
http://localhost/htdocs/dev will not work.

htaccess was creating prob

PostPosted: 27. September 2006 22:59
by ashbyrich

Thanks.. I have fixed the removing htaccess...

Figure i need to check out mod_rewrite because thats what i was doing with it...

http://localhost/dev will work.
http://localhost/htdocs/dev will not work.

Ref the above, sorry i didnt state things more clearly...

many thanks, R

I will check out the Whales..

PostPosted: 27. September 2006 23:11
by Izzy
You need to uncomment this line in the httpd.conf file:
#LoadModule rewrite_module modules/
to this:
LoadModule rewrite_module modules/

then have a read of this:

PostPosted: 28. September 2006 11:21
by ashbyrich
All works fine now...including the mod_rewrite which was the original reason for replacing my old dev environment....

many thanks izzy....

R :D

PostPosted: 28. September 2006 11:24
by Izzy
Your more than welcome and good luck with it all. :)