From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 21 21:10:19 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 931A316A563 for ; Sun, 21 May 2006 21:10:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75E6643D48 for ; Sun, 21 May 2006 21:10:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4LLAH9A075834 for ; Sun, 21 May 2006 21:10:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4LLAHLS075833; Sun, 21 May 2006 21:10:17 GMT (envelope-from gnats) Resent-Date: Sun, 21 May 2006 21:10:17 GMT Resent-Message-Id: <200605212110.k4LLAHLS075833@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, olli Hauer Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6258316A4C2 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/97574: mistake in sample mod_jk.conf-sample X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 May 2006 21:10:20 -0000 >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@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 @@ # 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: