Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 123503

Summary: net-www/apache-1.3.34-r11 - apachectl does not work correctly
Product: Gentoo Linux Reporter: Sasha Polonsky <apl>
Component: New packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2005.1   
Hardware: AMD64   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sasha Polonsky 2006-02-20 07:23:13 UTC
I have emerged "=net-www/apache-1.3.34-r11" and found out that
apachectl shell script produces the following error message:

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

It seems that after a change in apache config files layout the developers
have forgotten to adjust /usr/sbin/apachectl shell script to new layout.
Of course I can check apache config by the command /etc/init.d/apache configtest
(which works), but I used to use apachectl because it is OS-independent, and
I work with apache not only on Linux, but on FreeBSD and OpenBSD too.

To workaround this bug, I have changed the HTTPD variable in apachectl script
from "/usr/sbin/apache" to "/usr/sbin/apache -f /etc/apache/httpd.conf", but
I think you developers can design a better fix for the bug. My emerge --info 
follows.


karl etc # emerge --info
Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 berkdb bzip2 crypt curl elibc_glibc expat fortran gd gdbm gmp idn jpeg kernel_linux libwww mhash mysql ncurses pam perl php png python readline samba ssl tcpd truetype udev userland_GNU userlocales xml2 zlib"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

karl etc #
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-20 07:30:50 UTC

*** This bug has been marked as a duplicate of 106563 ***