Accessing files in sub directories

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

Accessing files in sub directories

Postby ashbyrich » 27. September 2006 22:12

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 directory...ie 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
localhost
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
Last edited by ashbyrich on 28. September 2006 13:05, edited 1 time in total.
ashbyrich
 
Posts: 4
Joined: 27. September 2006 22:03

Postby Izzy » 27. September 2006 22:38

Look in the apache error log:
xampp\apache\logs\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 directory...ie 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.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

htaccess was creating prob

Postby ashbyrich » 27. September 2006 22:59

Izzy,

Thanks.. I have fixed the problem....by 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..
ashbyrich
 
Posts: 4
Joined: 27. September 2006 22:03

Postby Izzy » 27. September 2006 23:11

You need to uncomment this line in the httpd.conf file:
#LoadModule rewrite_module modules/mod_rewrite.so
to this:
LoadModule rewrite_module modules/mod_rewrite.so

then have a read of this:
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby ashbyrich » 28. September 2006 11:21

All works fine now...including the mod_rewrite which was the original reason for replacing my old dev environment....

many thanks izzy....

R :D
ashbyrich
 
Posts: 4
Joined: 27. September 2006 22:03

Postby Izzy » 28. September 2006 11:24

Your more than welcome and good luck with it all. :)
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 90 guests

cron