Bug 125183 - www/apache22 wrong SUEXEC_DOCROOT
Summary: www/apache22 wrong SUEXEC_DOCROOT
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-02 13:40 UTC by Carsten Wiedmann
Modified: 2015-04-18 14:27 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback? (apache)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Wiedmann 2008-07-02 13:40:01 UTC
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

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".
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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-07-02 13:43:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Carsten Wiedmann 2008-07-04 03:11:18 UTC
> Description:
> 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".
 >
 > 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".

Hello,

I think, the best way is a). Because at the moment I'm installing the port 
"devel/websvn". And the install dir for this port/package is also 
"${PREFIX}/www/data/websvn". Maybe there are also some other ports, with 
assume that the "htdocsdir" is "${PREFIX}/www/data/" and not 
"${PREFIX}/www/apache22/data/".

Is there any reason, why the "config.layout" from Apache is patched from the 
apache22 port?

Regards,
Carsten
Comment 3 Philip M. Gollucci freebsd_committer freebsd_triage 2008-12-27 20:29:40 UTC
Responsible Changed
From-To: clement->apache

apache team
Comment 4 Carlo Strub freebsd_committer freebsd_triage 2014-08-29 20:10:54 UTC
Back to pool
Comment 5 Carlo Strub freebsd_committer freebsd_triage 2014-08-31 20:16:21 UTC
Is this PR still relevant?