ports/97574: mistake in sample mod_jk.conf-sample
olli Hauer
ohauer at gmx.de
Sun May 21 21:10:20 UTC 2006
>Number: 97574
>Category: ports
>Synopsis: mistake in sample mod_jk.conf-sample
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun May 21 21:10:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: olli Hauer
>Release: 6.1-RELEASE
>Organization:
>Environment:
FreeBSD amd.uni.vrs 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Wed May 10 00:11:24 CEST 2006 root at amd.uni.vrs:/usr/obj/usr/src/sys/AMD61 i386
>Description:
apache will not start with the settings in the mod_jk.conf.sample.
The messages in the jk.log (if the directory /usr/local/logs exist)
will show the following error messages.
[error] init_jk::mod_jk.c (2370): Initializing shm:/usr/local/logs/jk-runtime-status errno=2
[error] jk_child_init::mod_jk.c (2326): Attachning shm:/usr/local/logs/jk-runtime-status errno=2
This message comes from the missing JkShmFile directive.
If you don't like the path (/var/log/...) so please add only the Line with the JkShmFile in the mod_jk.conf.sample and create the directory /usr/local/logs with the portinstall.
There is also a mistake in the mod_jk.conf.sample
- JkLogLevel warn is not defined!
valid log levels:
from the source in
- apache-1.3/mod_jk.c * JkLogLevel debug/info/request/error/emerg
- apache-2.0/mod_jk.c * JkLogLevel debug/info/error/emerg
from http://tomcat.apache.org/connectors-doc/howto/apache.html
valid JkLogLevel: info/error/debug
>How-To-Repeat:
1) Install apache20 + mod_jk from ports, if the directory /usr/local/logs does not exist you can not bring up apache.
2) create directory /usr/local/logs
3) start apache
4) watch the file /usr/local/logs/jk.log
5) create the line 'JkShmFile /var/log/jk-runtime-status' in mod_jk.conf
6) restart apache
>Fix:
--- mod_jk.conf.sample.orig Tue Feb 7 04:23:10 2006
+++ mod_jk.conf.sample Tue Mar 14 13:22:25 2006
@@ -3,8 +3,9 @@
#
<IfModule mod_jk.c>
JkWorkersFile %%APACHE_CONF%%/workers.properties
- JkLogFile logs/jk.log
- JkLogLevel warn
+ JkLogFile /var/log/jk.log
+ JkShmFile /var/log/jk-runtime-status
+ JkLogLevel error
# Sample JkMounts. Replace these with the paths you would
# like to mount from your JSP server.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list