ports/86002: Can't actually set apache2 SUEXEC_DOCROOT
fehwalker at gmail.com
Mon Sep 12 02:10:20 UTC 2005
>Synopsis: Can't actually set apache2 SUEXEC_DOCROOT
>Arrival-Date: Mon Sep 12 02:10:19 GMT 2005
>Originator: Bryan Fullerton
>Release: FreeBSD 5.4-RELEASE-p4 i386
Samurai Consulting Inc.
System: FreeBSD st02.samurai.com 5.4-RELEASE-p4 FreeBSD 5.4-RELEASE-p4 #0: Tue Jul 19 12:14:18 EDT 2005 bryanf at st02.samurai.com:/export/obj/export/src/sys/GENERIC i386
Current ports tree, updated twice daily.
st02.bryanf:/usr/ports/www/apache2> grep FreeBSD Makefile|head -1
# $FreeBSD: ports/www/apache2/Makefile,v 1.228 2005/09/10 14:46:13 clement Exp $
When the apache2 port is compiled with SUEXEC and SUEXEC_DOCROOT defines, the suexec binary is still compiled with the default Apache docroot AP_DOC_ROOT (defined as /usr/local/www in the port).
This is not a new problem, it's been there for at least the past 2 months (wasn't using suexec before that).
st02.bryanf:/usr/ports/www/apache2> make -DWITH_SUEXEC -DSUEXEC_DOCROOT=/vws
[... compiling, no errors ...]
st02.bryanf:/usr/ports/www/apache2> sudo work/httpd-2.0.54/support/suexec -V
I'm sure it's somewhere in the Makefiles, but I don't have the time now to sort through them.
For now I'm manually hacking suexec.h with a fake AP_DOC_ROOT and recompiling in the work directory. Obviously this is less than ideal.
More information about the freebsd-ports-bugs