Apache will not restart when document root is changed in HTTPD.CONF file
am 28.09.2007 12:37:50 von andysummerskillHi,
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