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:
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.
Looks like your mod_jk.so file are missing 'jk_log' (which you probably already know). I've never compiled this module myself, but there may be other options you need to pass to the compiler/linker in order to include 'jk_log'.
I'd look into makefiles, README, etc. in the source directory first.
Cheers
Linux User #181509
* It can hardly be a coincidence that no language on this planet
has ever come up with the phrase "as pretty as an airport" *
-- Douglas Adams --
I apologize, there is actually a difference with ubuntu (including that I have to add CFLAGS=-fPIC to the configure command). The problem is no longer jk_log, but jk_set_log_format. I have searched all the makefile's and documents, but I cannot seem to find any reference to it.
So the error I get now is:
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_set_log_format
Since it still gave an undefined symbol error, I was stupid and assumed that it was the same symbol.
Found this after a quick Google search, and there seems to be a problem in a particular version of the mod_jk sources. Not sure which version you are trying, as you didn't bother to mention that, but here's the link: http://servlets.com/archive/servlet/...me=tomcat-user
Linux User #181509
* It can hardly be a coincidence that no language on this planet
has ever come up with the phrase "as pretty as an airport" *
-- Douglas Adams --
I've also found that site, but I couldn't see if there was any solution.
I'm sorry for leaving out version info, but here it comes (better late than never):
Bookmarks