Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2005 22:02:16 -0400 (EDT)
From:      Bryan Fullerton <fehwalker@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        clement@FreeBSD.org
Subject:   ports/86002: Can't actually set apache2 SUEXEC_DOCROOT
Message-ID:  <20050912020216.01ADABC78@st02.samurai.com>
Resent-Message-ID: <200509120210.j8C2AJBm057652@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         86002
>Category:       ports
>Synopsis:       Can't actually set apache2 SUEXEC_DOCROOT
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 12 02:10:19 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Bryan Fullerton
>Release:        FreeBSD 5.4-RELEASE-p4 i386
>Organization:
Samurai Consulting Inc.
>Environment:
System: FreeBSD st02.samurai.com 5.4-RELEASE-p4 FreeBSD 5.4-RELEASE-p4 #0: Tue Jul 19 12:14:18 EDT 2005 bryanf@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 $

>Description:

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).

>How-To-Repeat:

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
 -D AP_DOC_ROOT="/usr/local/www/data"
 -D AP_GID_MIN=1000
 -D AP_HTTPD_USER="www"
 -D AP_LOG_EXEC="/var/log/httpd-suexec.log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=1000
 -D AP_USERDIR_SUFFIX="public_html"


>Fix:

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.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050912020216.01ADABC78>