File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply 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: 3268

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can not start Apache with mod_jk.conf
 
Similar Threads
Unable to open the service Tomcat5
500 internal Server Error when integrate Apache 2.2.17 with tomcat 6.0.29
Installing tools from Ajax and PHP
Connecting Apache 2.2 and Tomcat 5.5
Setting Load balancer for JBoss using Apache and mod_jk