Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45774 - apache 2.0.49, relative CONFIGFILE path causes errors
Summary: apache 2.0.49, relative CONFIGFILE path causes errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-25 23:50 UTC by Tero Pelander
Modified: 2004-03-26 02:16 UTC (History)
0 users

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 Tero Pelander 2004-03-25 23:50:59 UTC
The file files/2.0.49/apache2.initd should have following change
-                       myconf="${STARTUPERRORLOG}/${CONFIGFILE}"
+                       myconf="${SERVERROOT:-/usr}/${CONFIGFILE}"

1) STARTUPERRORLOG is obviously wrong as we want the base directory
2) the default /usr is what the apache2 is compiled with (test with "apache2 -V")
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-03-26 00:45:54 UTC
/usr isn't right, /usr/lib/apache2 is.
i've put it into the tree now, but I haven't done a revision bump yet as i'm looking at some other stuff.
Comment 2 Tero Pelander 2004-03-26 02:16:47 UTC
Unfortunately /usr is right. If you try "apache2 -V" you will see
 -D HTTPD_ROOT="/usr"

The configure script gets "/usr" as prefix and that is used as a root directory.
You can easily check it by trying the following
$ apache2 -f conf/test.conf
apache2: could not open document config file /usr/conf/test.conf