Apache only works with certain document root folders?
Posted: 05. May 2009 17:01
When I edit httpd.conf to use some random (local) folder, and then start Apache, it works fine. But when I set it to a network mapped drive, it doesn't. For example, in httpd.conf, there is:
DocumentRoot "C:/WebRoot"
and somewhat below (where it says "This should be changed to whatever you set DocumentRoot to"), the <Directory> part starts with:
<Directory "C:/WebRoot">
All OK so far, Apache runs fine. But with these settings:
DocumentRoot "X:/DocRoot"
...
<Directory "X:/DocRoot">
Where X: is a mapped network drive (for example, after doing "net use X: \\192.168.1.5\SharedFolder" on the command line), then Apache does NOT work
When starting the service on the cmd line, "net start apache2.2" gives: "The Apache2.2 service could not be started. A service specific error occurred: 1"
The specified folder (in this case X:/DocRoot) certainly exists and I have full write access to it.
Even when the mapped drive letter actually points to a share on my own system (for example I have C:/WebRoot shared as "WebRoot", and then do "net use X: \\127.0.0.1\WebRoot"), Apache still won't start... I installed the latest version of Xampp (downloaded a few weeks ago, including the patch) and using Apache/2.2.11 for Windows.
DocumentRoot "C:/WebRoot"
and somewhat below (where it says "This should be changed to whatever you set DocumentRoot to"), the <Directory> part starts with:
<Directory "C:/WebRoot">
All OK so far, Apache runs fine. But with these settings:
DocumentRoot "X:/DocRoot"
...
<Directory "X:/DocRoot">
Where X: is a mapped network drive (for example, after doing "net use X: \\192.168.1.5\SharedFolder" on the command line), then Apache does NOT work
When starting the service on the cmd line, "net start apache2.2" gives: "The Apache2.2 service could not be started. A service specific error occurred: 1"
The specified folder (in this case X:/DocRoot) certainly exists and I have full write access to it.
Even when the mapped drive letter actually points to a share on my own system (for example I have C:/WebRoot shared as "WebRoot", and then do "net use X: \\127.0.0.1\WebRoot"), Apache still won't start... I installed the latest version of Xampp (downloaded a few weeks ago, including the patch) and using Apache/2.2.11 for Windows.