Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Sep 2012 11:14:05 +0200
From:      Neal Nelson <nealie@kobudo.homeunix.net>
To:        Olli Hauer <ohauer@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Apache22 SUEXEC OptionsNG
Message-ID:  <01D512A1-5BBB-4ED2-B0B2-6F381D42B27B@kobudo.homeunix.net>
In-Reply-To: <50620FBA.7050403@FreeBSD.org>
References:  <BCE12A51-C845-4302-8263-CEEEC51EAC85@kobudo.homeunix.net> <50620FBA.7050403@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail


On 2012-Sep-25, at 22:10 , Olli Hauer wrote:

> On 2012-09-25 11:16, Neal Nelson wrote:
>> Hi.
>> 
>> 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.
>> 
>> 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.
>> 
>> If anyone can tell me how I can configure SUEXEC using OptionsNG  I'd be very grateful.
>> 
>> Regards,
>> 
> 
> Hi Nelson,
> 
> this should do the trick.
> 
> $> cat /etc/make.conf
> .if ${.CURDIR:M*/www/apache*}
> SUEXE_UIDMIN=$num
> SUEXEC_GIDMIN=$num
> SUEXEC_DOCROOT=/some/path
> .endif
> 
> or on the command line
> $> make SUEXEC_UIDMIN=$num SUEXEC_GIDMIN=$num SUEXEC_DOCROOT=/some/path
> 
> To see your configured values (from make.conf) use the -V parameter
> $> make -V SUEXEC_UIDMIN -V SUEXEC_GIDMIN -V SUEXEC_DOCROOT
> 
> If you don't see any output run `make config' and make sure SUEXEC is selected.
> 
> --
> Regards,
> olli

Thanks for your help, it has seemed to work perfectly. 

Maybe this should be documented somewhere as I would never have guessed how to do this without help.



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01D512A1-5BBB-4ED2-B0B2-6F381D42B27B>