HELP ME PLEASE!!! Cannot change document root

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

HELP ME PLEASE!!! Cannot change document root

Postby senorJ » 02. August 2006 18:08

Hello

I work on a dual boot laptop that is used for web development work. Most of the time I use the Linux partition and have XAMPP for Linux installed on there - no problems.

I have a FAT partition on the laptop hard drive that I use as a shared drive between Windows XP & Linux. I want to keep all my websites on this shared partition and be able to access them via XAMPP on either operating system.

I have manged to change the document root in XAMPP for Linux to the shared drive (E:\work\websites) but I cannot do the same in XAMPP for Windows (really annoying!)

I have tried to edit the httpd.conf under Windows as below:

Code: Select all
# DocumentRoot "C:/Program Files/xampp/htdocs"
DocumentRoot "E:/work/websites"


Then when I restart XAMPP I get the following error in my browser:

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
08/02/06 16:47:39
Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/4.4.1-pl1


There is an index document in E:\work\websites so does that mean that it is a permissions issue?

Am I wasting my time or does anybody know if this can be done?

Thanks
Jay
senorJ
 
Posts: 9
Joined: 02. August 2006 17:39

Postby Wiedmann » 02. August 2006 18:15

You read the lines in "httpd.conf", which come after the "DocumentRoot ...", also?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby senorJ » 02. August 2006 18:35

Wiedmann wrote:You read the lines in "httpd.conf", which come after the "DocumentRoot ...", also?


Er...No actually. But I am now! I will do my best to figure it myself and will post again if I still have trouble.

Thanks for pointing that out Wiedmann
senorJ
 
Posts: 9
Joined: 02. August 2006 17:39

Postby senorJ » 02. August 2006 19:11

Well that was pretty painless to fix. If only I had read a few more lines of the file instead of going into stress mode.

Thanks Again
Jay
senorJ
 
Posts: 9
Joined: 02. August 2006 17:39


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 70 guests