From owner-freebsd-questions@FreeBSD.ORG Fri Jul 27 09:51:21 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AD8E106566C for ; Fri, 27 Jul 2012 09:51:21 +0000 (UTC) (envelope-from chad@shire.net) Received: from mail.shire.net (mail.shire.net [199.102.78.250]) by mx1.freebsd.org (Postfix) with ESMTP id 170228FC12 for ; Fri, 27 Jul 2012 09:51:21 +0000 (UTC) Received: from c-76-27-96-201.hsd1.ut.comcast.net ([76.27.96.201] helo=[192.168.99.216]) by mail.shire.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77) (envelope-from ) id 1Sudr5-000IaM-Ff; Fri, 27 Jul 2012 00:16:55 -0600 From: Chad Leigh Shire.Net LLC Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 27 Jul 2012 00:16:54 -0600 Message-Id: To: FreeBSD Mailing List Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) X-SA-Exim-Connect-IP: 76.27.96.201 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on mail.shire.net); SAEximRunCond expanded to false Cc: Chad Leigh Subject: Apache FCGI in a a jail under FBSD 9 won't start due to shared memory creation error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2012 09:51:21 -0000 Hi I run systems using FreeBSD 9.0 FreeBSD utah.XXXXXXXcom 9.0-STABLE FreeBSD 9.0-STABLE #1: Wed Mar 21 = 15:22:14 MDT 2012 chad@underhill:/usr/obj/usr/src/sys/UNDERHILL-XEN = amd64 and on those systems run a bunch of jails. I have Apache 2.2 built and = running in the jail in question, and recently had need to add mod_fcgid = to it. NOTE that the Apache and mod_fcgid were not installed through = ports or packages. I download the source and build myself (for various = reasons). =20 Apache inside the Jail, with mod_fcgid enabled will not start: [Mon Jul 23 10:59:35 2012] [emerg] (78)Function not implemented: = mod_fcgid: Can't create shared memory for size 1192488 bytes I did a search on this and found that I would probably need a system = kernel parameter changed from 0 -> 1 security.jail.sysvipc_allowed So I did that. (And restarted the jail). However, I still get the same = error when trying to start apache. I noticed a similar parameter security.jail.param.allow.sysvipc but = cannot change this at run time and did not find anything useful about = what this parameter is for using a search engine. (As an aside, how would I change security.jail.sysvipc_allowed and = also security.jail.param.allow.sysvipc at boot time? I added them both = to /boot/loader.conf but they did not get changed at boot and I had to = do the security.jail.sysvipc_allowed one again on the command line -- I = have some vfs type kernel state variables set there and they stick) I would appreciate some help with getting things set up so that I can = run apache with mod_fcgid under my Jails on FBSD 9. Thanks! Chad