Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92471 - apache-2 suexec docroot must not be hardcoded
Summary: apache-2 suexec docroot must not be hardcoded
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
: 99118 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-12 22:32 UTC by Bernd Wurst
Modified: 2007-09-01 19:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Wurst 2005-05-12 22:32:30 UTC
SuExec wants a configure parameter specifying its execution path. You mostly want this to be the document root of the running webserver.

The Gentoo ebuild file hardcodes "/var/www" as the base dir of suexec. If you want to use another document root e.g. /srv or /home, you must edit the ebuild file.

We did do this with a script that does emerge sync and then modified the apache-2 ebuild files. Now, as of 2.0.54, the apache ebuild files are digest protected and we always get a digest mismatch. :-/

Doing ebuild .../apache-* digest every time is not really a good solution.

I think the apache ebuild file should look for either a variable from make.conf or a config file to set this path correctly.
Comment 1 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-05-13 11:45:25 UTC
(In reply to comment #0) 
> SuExec wants a configure parameter specifying its execution path. You mostly 
> want this to be the document root of the running webserver. 
>  
> The Gentoo ebuild file hardcodes "/var/www" as the base dir of suexec. If 
> you want to use another document root e.g. /srv or /home, you must edit the 
> ebuild file. 
> [...] 
 
We're in the process of fixing this (well, I've started an eclectic module to 
a suexec-config tool, which I'm hoping we'll take official someday).  Either 
way, we have to get the 'apache refresh' updates stable before we go adding 
new features like this, that may break a working suexec. 
 
Resolving LATER, will pick this up again once got the above mentioned updates 
stable.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-07-15 11:25:24 UTC
*** Bug 99118 has been marked as a duplicate of this bug. ***
Comment 3 Simon Arlott 2007-09-01 19:52:45 UTC
This should be reopened.