Apache Server configuration support - apache - tomact configuration

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > December 2005 > apache - tomact configuration





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author apache - tomact configuration
alan_sec

2005-12-28, 9:01 pm

Hi.
I'm trying to connect apache to tomcat using mod_jk connector. I' m
using auto config from tomcat.
mod_jk.conf file:
<IfModule !mod_jk.c>
LoadModule jk_module "/u2/razno/tomcat/mod_jk/mod_jk.so"
</IfModule>

I incloded mod_jk.conf file in httpd.conf:
Include /u2/razno/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf

When i try to start apache i get this:
[bin]# ./apachectl -f /u2/razno/apache/conf/httpd.conf
httpd: Syntax error on line 414 of /u2/razno/apache/conf/httpd.conf:
Syntax error on line 4 of
/u2/razno/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf: Cannot load
/u2/razno/tomcat/mod_jk/mod_jk.so into server:
/u2/razno/tomcat/mod_jk/mod_jk.so: cannot open shared object file: No
such file or directory

File mod_jk.so exists.
What is the problem?
Thanx,
Alan

Davide Bianchi

2005-12-28, 9:01 pm

On 2005-12-28, alan_sec <aklikic@yahoo.com> wrote:
> LoadModule jk_module "/u2/razno/tomcat/mod_jk/mod_jk.so"
> httpd: Syntax error on line 414 of /u2/razno/apache/conf/httpd.conf:
> Syntax error on line 4 of
> /u2/razno/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf: Cannot load


It seems that both your httpd.conf and mod_jk.conf are trying to load
the same module. Change one of the two to load it only once.

> /u2/razno/tomcat/mod_jk/mod_jk.so into server:
> /u2/razno/tomcat/mod_jk/mod_jk.so: cannot open shared object file: No
> such file or directory


It could be that the module is trying to load a library and such library
does not exists or is not where the module expects. Using ldd will
tell you.

Davide

--
If USENET is anarchy, IRC is a paranoid schizophrenic after 6 days on speed.
-- Chris "Saundo" Saunderson
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com