I just can't seem to get the mod_jk module to work with Apache.
The first problem is that I'm not able to create the mod_jk module the normal way. After I configure the tomcat-connectors source with apxs and do a make (both go trough without errors), there still isn't any mod_jk module under the apache-2.0 directory. These are the only files that are there:
Code:
Makefile
Makefile.apxs.in
Makefile.vc
Makefile.apxs
Makefile.in
NWGNUmakefile
bldjk.qclsrc
config.m4
mod_jk.a
mod_jk.dsp
mod_jk.lo
mod_jk.c
mod_jk.la
mod_jk.o
But after a lot of google searching, I found a site that used the following command after make:
Code:
gcc -shared -o apache-2.0/mod_jk.so apache-2.0/*.o
This actually created a mod_jk.so file, which I copied to my apache/modules/ directory, and then added the following to httpd.conf:
Code:
LoadModule jk_module          modules/mod_jk.so
JkWorkersFile /usr/local/apache/workers.properties
JkLogFile     /usr/lib/apache-tomcat/logs/mod_jk.log
JkLogLevel    info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat     "%w %V %T"
But when I start apache I get this error (line 54 is the LoadModule line):
Code:
httpd: Syntax error on line 54 of /etc/httpd/httpd.conf: Cannot load /usr/local/apache/modules/mod_jk.so into server: /usr/local/apache/modules/mod_jk.so: undefined symbol: jk_log
I hope someone here can help me with this, because it's driving me nuts.