Apache will not restart when document root is changed in HTTPD.CONF file

Apache will not restart when document root is changed in HTTPD.CONF file

am 28.09.2007 12:37:50 von andysummerskill

Hi,

Just installed Apache Web Server on a PC running XP-MCE with the
intention of storing my website on a Network Attached Storage (Maxtor
Shared Storage II) disk drive. With this in mind I created a folder on
this drive under the file path \\MSS\Public\Our Sites\Web and saved a
html file, named index.html in the \Web folder. I then mapped the
drive letter K: to \\MSS\Public\Our Sites on the PC. I then edited the
Document Root directive and Directory directive in the default
httpd.conf file from "C:\Program Files\Apache Software Foundation
\Apache2.2\htdocs" to read "K:\Web" and a Directory. Saved the file
and then tried to restart Apache but got the Windows Error Message
that 'Apache HTTP Server has encountered a problem needs to close',
followed a few seconds later the Apache Error Message 'The requested
operation has failed'.

I've done a bit of troubleshooting and found that, without changing
the httpd.conf file again, if I plug in a USB drive into the PC it
acquires the drive letter K: and if I put an index.html into the \Web
folder on this drive and restart Apache again it restarts with no
problems!

I have also tried mapping K: to C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs, creating a \Web folder containing a file
index.html in the \htdocs folder and restarting the server but, again,
the server fails to start and the Error Messages above are generated!!

Can't find any reference in newsgroups or Apache documentation that
could explain what I am seeing so was hoping that someone might be
able to shed some light on the issue?

Regards,

Andy Summerskill

Re: Apache will not restart when document root is changed in HTTPD.CONF file

am 01.10.2007 14:08:27 von andysummerskill

Additional info.

Tried installing versions 2,2,4, 2.2.5 and 2.2.6 and see the same
problem.

No useful information from the Apache error log but get the following
information from the Windows event viewer:

Faulting application httpd.exe, version 2.2.5.0, faulting module
libapr-1.dll, version 1.2.9.0, fault address 0x000038dc.

Regards,

Andy Summerskill