Forum Moderators: phranque

Message Too Old, No Replies

Error: apache: could not open document config file httpd.conf

Error: apache: could not open document config file httpd.conf

         

djhyper

7:59 pm on Jun 1, 2009 (gmt 0)

10+ Year Member



Hi,

Running the following on a Win 2003 R2/Service pack 2 server:
Apache/2.0.55(Win32) mod_jk/1.2.0

When we try to run Apache as a service (D:\apache\Apache2\bin>"D:\apache\Apache2\bin\apac he.exe" -k runservice) we get the following errer "Windows could not start the Apache2 on the local computer"

In Application event log we get the following two events:
The Apache service named reported the following error:
>>> (OS 1063)The service process could not connect to the service controller. : Error starting service control dispatcher .
and...
The Apache service named reported the following error:
>>> apache.exe: could not open document config file D:/apache/Apache2/conf/httpd.conf

If I try to just execute the command at the command line, Apache.exe, I get the following error:
D:\apache\Apache2\bin>apache
apache: could not open document config file D:/apache/Apache2/conf/httpd.conf

From what I have researched that file is created upon installation. Any help in resolving this would be greatly appreciated.

Thanks!

Dan

jdMorgan

10:27 pm on Jun 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check file permissions, and use of forward versus backslashes.

Jim

djhyper

10:43 pm on Jun 1, 2009 (gmt 0)

10+ Year Member



Thanks... figured it out.