File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can not start Apache with mod_jk.conf

 
hirsch, kanwal
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
hirsch, kanwal
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic