You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Flo <fl...@free.fr> on 2004/03/03 23:51:11 UTC
RE : RE : how to get or build a mod_jk module for Cygwin Apache ?
On cygwin, the modules are located in the /lib/apache directory
Look at the httpd.conf of cygwin apache :
...
# LoadModule foo_module libexec/mod_foo.so
LoadModule vhost_alias_module lib/apache/mod_vhost_alias.dll
LoadModule env_module lib/apache/mod_env.dll
LoadModule config_log_module lib/apache/mod_log_config.dll
LoadModule mime_magic_module lib/apache/mod_mime_magic.dll
LoadModule mime_module lib/apache/mod_mime.dll
...
I don't understand why the end of the error message changed :
$ /usr/sbin/httpd.exe
Syntax error on line 1020 of /etc/apache/httpd.conf:
Cannot load /usr/lib/apache/mod_jk2-1.3.27.dll into server: dlopen:
Win32 error 126
And why it says that the mod_jk is in /usr/lib/apache instead
/lib/apache.
The end of my httpd.conf :
# Load mod_jk module
# Update this path to match your modules location
#LoadModule jk_module libexec/mod_jk.so
LoadModule jk_module lib/apache/mod_jk2-1.3.27.dll
# Declare the module for <IfModule directive>
AddModule mod_jk.c
# Where to find workers.properties
# Update this path to match your conf directory location (put
workers.properties next to httpd.conf)
JkWorkersFile /etc/httpd/conf/workers.properties
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log
next to access_log)
JkLogFile /var/log/apache/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
I will try a 'standard' distribution of apache as you suggested
-----Message d'origine-----
De : Christopher Schultz
Envoyé : mercredi 3 mars 2004 21:25
À : Tomcat Users List
Objet : Re: RE : how to get or build a mod_jk module for Cygwin Apache ?
Flo,
> I thought FreeBSD works like cygwin but it seems wrong.
FreeBSD is a 'real' UNIX flavor, while cygwin provider UNIX-like
services and libraries on win32.
> I tried the mod_jk_1_2_5_2_0_47.dll I got errors launching httpd :
> Win32 error 126 (The specified module could not be found)
> I needed to add ApacheCore.dll Win9xConHook.dll to the PATH
> Then i got another error message : Win32 error 127 (The specified
> procedure could not be found).
You shouldn't have used mod_sk_1_2_5__2_0_47.dll -- that's for Apache
2.0, not Apache 1.3.
> Then I tried mod_jk2-1.3.27.dll but I get this error :
>
> Syntax error on line 1020 of /etc/apache/httpd.conf:
> Can't locate API module structure `jk_module' in file
> /usr/lib/apache/mod_jk2-1.
> 3.27.dll: dlsym: Win32 error 127
You probably have the dll in the wrong place. The standard location for
Apache modules is in the 'modules' directory in the Apache installation.
> So I thought to build any mod_jk but how?
You'll have the same problems if you build it yourself. You still need
to put it in the right place.
> I would like to find a better and easier solution.
Are you using Apache as a package that was installed via Cygwin? You
might have better luck with the 'standard' distribution, which comes
with a very simple installer, from httpd.apache.org.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org