Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106563 - apache-1.3.33-r12: apachectl needs patch for correct configuration location
Summary: apache-1.3.33-r12: apachectl needs patch for correct configuration location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
: 123503 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-19 12:21 UTC by Tobias Scherbaum (RETIRED)
Modified: 2006-06-05 13:08 UTC (History)
4 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 Tobias Scherbaum (RETIRED) gentoo-dev 2005-09-19 12:21:22 UTC
apache-1.3.33-r12 relies on /etc/apache/apache.conf instead of
/etc/apache/httpd.conf.

buddy ~ # apachectl configtest
fopen: No such file or directory
apache: could not open document config file /etc/apache/apache.conf

[ebuild   R   ] net-www/apache-1.3.33-r12  -apache2 -doc -lingerd -no-suexec
+pam (-selinux) -ssl -static-modules 0 kB
Comment 1 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-09-19 20:01:27 UTC
The init.d script does not rely on apache.conf, only apachectl, which is
deprecated in favor of the init script.

However, I will look into creating a patch for apachectl.
Comment 2 David D. Huff Jr. 2005-09-20 09:09:39 UTC
Apache is looking for apache.conf in the wrong location. It is looking for the 
conf file in /etc/apache when in fact it resides in /etc/apache/conf

This needs to be corrected.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-02-20 07:30:50 UTC
*** Bug 123503 has been marked as a duplicate of this bug. ***
Comment 4 Matt Kynx 2006-03-30 05:34:42 UTC
Just ran into this with 1.3.34-r11 as well.

apxs seems to rely on the config file path that apache was compiled with, which still point to the old-style apache.conf - see SERVER_CONFIG_FILE below. 

I guess the workaround is to create a symlink.


$ apache -V
Server version: Apache/1.3.34 (Unix)  (Gentoo)
Server built:   Mar 30 2006 13:22:50
Server's Module Magic Number: 19990320:18
Server compiled with....
 -D EAPI
 -D EAPI_MM
 -D EAPI_MM_CORE_PATH="/var/cache/apache-mm/mm"
 -D HAVE_MMAP
 -D HAVE_SHMGET
 -D USE_SHMGET_SCOREBOARD
 -D USE_MMAP_FILES
 -D HAVE_FCNTL_SERIALIZED_ACCEPT
 -D HAVE_SYSVSEM_SERIALIZED_ACCEPT
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D DYNAMIC_MODULE_LIMIT=64
 -D HARD_SERVER_LIMIT=512
 -D HTTPD_ROOT="/usr/lib/apache"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache.pid"
 -D DEFAULT_SCOREBOARD="/var/run/apache.scoreboard"
 -D DEFAULT_LOCKFILE="/var/run/apache.lock"
 -D DEFAULT_ERRORLOG="/var/log/apache/error_log"
 -D TYPES_CONFIG_FILE="/etc/apache/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache/apache.conf"
 -D ACCESS_CONFIG_FILE="/etc/apache/access.conf"
 -D RESOURCE_CONFIG_FILE="/etc/apache/srm.conf"
Comment 5 Tobias Scherbaum (RETIRED) gentoo-dev 2006-03-30 05:47:02 UTC
(In reply to comment #4)
> I guess the workaround is to create a symlink.

It is.

Though having a "real" fix in portage somewhen in the near future would be a good thing (tm).
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2006-06-05 13:08:03 UTC
fixed in 1.3.34-r13, thanks