From owner-freebsd-ports@FreeBSD.ORG Sat Sep 29 09:14:15 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6024B106566B; Sat, 29 Sep 2012 09:14:15 +0000 (UTC) (envelope-from nealie@kobudo.homeunix.net) Received: from nicandneal.net (nicandneal.net [194.231.42.198]) by mx1.freebsd.org (Postfix) with ESMTP id A6E0E8FC08; Sat, 29 Sep 2012 09:14:14 +0000 (UTC) Received: from [10.0.0.10] ([194.231.42.198]) (AUTH: PLAIN nealie, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by nicandneal.net with ESMTPSA; Sat, 29 Sep 2012 11:14:06 +0200 id 0005C056.000000005066BBDE.0000A805 Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=iso-8859-1 From: Neal Nelson In-Reply-To: <50620FBA.7050403@FreeBSD.org> Date: Sat, 29 Sep 2012 11:14:05 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <01D512A1-5BBB-4ED2-B0B2-6F381D42B27B@kobudo.homeunix.net> References: <50620FBA.7050403@FreeBSD.org> To: Olli Hauer X-Mailer: Apple Mail (2.1283) Cc: freebsd-ports@freebsd.org Subject: Re: Apache22 SUEXEC OptionsNG X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2012 09:14:15 -0000 On 2012-Sep-25, at 22:10 , Olli Hauer wrote: > On 2012-09-25 11:16, Neal Nelson wrote: >> Hi. >>=20 >> I'm trying to update my apache22 installation, but it keeps whinging = about having to use OptionsNG instead of the old options, which is fair = enough. >>=20 >> Unfortunately I can't find how to set the options I need to set for = SUEXEC. Previously I had SUEXEC_GIDMIN, SUEXE_UIDMIN and most = importantly SUEXEC_DOCROOT set, but from what I can see furtling through = the Makefile, all that there seems to be now is MSUEXEC_RSRCLIMIT and = MSUEXEC_USERDIR. >>=20 >> If anyone can tell me how I can configure SUEXEC using OptionsNG I'd = be very grateful. >>=20 >> Regards, >>=20 >=20 > Hi Nelson, >=20 > this should do the trick. >=20 > $> cat /etc/make.conf > .if ${.CURDIR:M*/www/apache*} > SUEXE_UIDMIN=3D$num > SUEXEC_GIDMIN=3D$num > SUEXEC_DOCROOT=3D/some/path > .endif >=20 > or on the command line > $> make SUEXEC_UIDMIN=3D$num SUEXEC_GIDMIN=3D$num = SUEXEC_DOCROOT=3D/some/path >=20 > To see your configured values (from make.conf) use the -V parameter > $> make -V SUEXEC_UIDMIN -V SUEXEC_GIDMIN -V SUEXEC_DOCROOT >=20 > If you don't see any output run `make config' and make sure SUEXEC is = selected. >=20 > -- > Regards, > olli Thanks for your help, it has seemed to work perfectly.=20 Maybe this should be documented somewhere as I would never have guessed = how to do this without help.