wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Can not start Apache with mod_jk.conf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Can not start Apache with mod_jk.conf" Watch "Can not start Apache with mod_jk.conf" New topic
Author

Can not start Apache with mod_jk.conf

hirsch, kanwal
Greenhorn

Joined: Jun 26, 2001
Posts: 13
I can't start apache. I got the following error.

C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe -k start
httpd.exe: Syntax error on line 476 of C:/Program Files/Apache Software Foundati
on/Apache2.2/conf/httpd.conf: Could not open configuration file C:/Program Files
/Apache Software Foundation/Apache2.2/conf/mod-jk.conf: The system cannot find t
he file specified.

i have mod-jk.conf file in the conf directory.

I have the include directive in the httpd.conf file as follows.

# Include mod_jk's specific configuration file
Include conf/mod-jk.conf


Please reply,

kanwal
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there,

Sometimes Apache really dislikes being installed in a location that has spaces in it (e.g. "Program Files"). I'd suggest installing another copy without spaces and see how that works out for you.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
hirsch, kanwal
Greenhorn

Joined: Jun 26, 2001
Posts: 13
Thanks for the reply.

I tried your suggestion, but still the same error.

C:\apacheInst\bin>httpd.exe -k start
httpd.exe: Syntax error on line 476 of C:/apacheInst/conf/httpd.conf: Could not
open configuration file C:/apacheInst/conf/mod_jk.conf: The system cannot find t
he file specified.

please reply,

kanwal
hirsch, kanwal
Greenhorn

Joined: Jun 26, 2001
Posts: 13
Thanks,

Solved my problem by removing the 'txt' extension of 'mod_jk.conf.txt' in windows.

thanks again.
 
Consider Paul's rocket mass heater.
 
subject: Can not start Apache with mod_jk.conf