From nobody@FreeBSD.org  Sun May 21 21:04:15 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6258316A4C2
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 May 2006 21:04:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2CC2A43D49
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 May 2006 21:04:15 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4LL4FZv081657
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 May 2006 21:04:15 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k4LL4E6c081656;
	Sun, 21 May 2006 21:04:14 GMT
	(envelope-from nobody)
Message-Id: <200605212104.k4LL4E6c081656@www.freebsd.org>
Date: Sun, 21 May 2006 21:04:14 GMT
From: olli Hauer <ohauer@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mistake in sample mod_jk.conf-sample
X-Send-Pr-Version: www-2.3

>Number:         97574
>Category:       ports
>Synopsis:       www/mod_jk: mistake in sample mod_jk.conf-sample
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    girgen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 21 21:10:16 GMT 2006
>Closed-Date:    Mon Aug 14 07:50:54 GMT 2006
>Last-Modified:  Mon Aug 14 07:50:54 GMT 2006
>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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->girgen 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon May 22 06:37:01 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97574 
State-Changed-From-To: open->closed 
State-Changed-By: girgen 
State-Changed-When: Mon Aug 14 07:50:25 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97574 
>Unformatted:
