Date: Wed, 2 Jul 2008 12:38:03 GMT From: Carsten Wiedmann <carsten_sttgt@gmx.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/125183: wrong SUEXEC_DOCROOT with apache22 Message-ID: <200807021238.m62Cc3Pw006914@www.freebsd.org> Resent-Message-ID: <200807021240.m62Ce126042742@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 125183 >Category: ports >Synopsis: wrong SUEXEC_DOCROOT with apache22 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 02 12:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Carsten Wiedmann >Release: FreeBSD 7.0-RELEASE >Organization: >Environment: FreeBSD bsdserver-2 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: Hello, in "bsd.apache.mk" SUEXEC_DOCROOT is set to "${PREFIX}/www/data". But the "htdocsdir" from apache22 is set to "${PREFIX}/www/apache22/data" (in "patch-config.layout"). Thus, in a normal build, suEXEC can't work "out of the box". Regards, Carsten >How-To-Repeat: install www/apache22 with suEXEC from the ports - grep "^DocumentRoot" /usr/local/etc/apache22/httpd.conf - suexec -V (look for AP_DOC_ROOT) See the different diretories. >Fix: a) set "datadir" from apache22 to ${PREFIX}/www" (like in apache20) or b) make a "if apache22 SUEXEC_DOCROOT=${PREFIX}/www/apache22/data" in "bsd.apache.mk". BTW: Don't you think it's better to set SUEXEC_DOCROOT to Apache's "datadir", instead to the "htdocsdir"? Because "cgi-bin" is not a subdir of the "htdocsdir", it's also a subdir of the "datadir". >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807021238.m62Cc3Pw006914>