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

Bug 70917

Summary: apache 2.0.52-r1 fails to start through init.d throwing up a log error, and also errors when I have APACHE2_OPTS="-D SSL" set
Product: Gentoo Linux Reporter: Max Cizauskas <max>
Component: New packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: VERIFIED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Max Cizauskas 2004-11-11 21:34:58 UTC
First I specified apache2 in my use flags and then I originally emerged apache with emerge apache mod_php. A bunch of warning messages popped up but scrolled past to quickly to be noted.

I later tried to re-emerge by running emerge apache, but had the same results. The real details are in the steps to reproduce and the actual reasults section.

Bug is being discussed in forums at http://forums.gentoo.org/viewtopic.php?t=250688

Reproducible: Always
Steps to Reproduce:
1.emerge apache mod_ssl
2. uncomment # APACHE@_OPTS="-D SSL" line from /etc/conf.d/apache2
3.as root run /etc/init.d/apache2 start

Actual Results:  
Error from first attempt:
* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 44 of /usr/lib/apache2/conf/modules.d/41_mod_ssl.default-
vhost.conf:
SSLCertificateFile: file '/usr/lib/apache2/conf/ssl/server.crt' does not exist 
or is empty

Upon re-commenting out of APACHE2_OPTS and attempting to 
run /etc/init.d/apache2 start I recieved the following error:
 * Starting apache2...
(2)No such file or directory: apache2: could not open error log 
file /usr/lib/apache2/logs/error_log.
Unable to open logs                                                       [ !! ]


Expected Results:  
 * Starting apache2...                                                    [ ok ]

I was able to fix the logging related error by creating the /var/log/apache2 
directory that /usr/lib/apache2/logs is supposed to link to.

I disabled APACHE2_OPTS="-D SSL" and was able to start up apache2 
using /etc/init.d/apache2 start

Here are the results of my emerge info
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.2, glibc-2.3.4.20040808-
r1, 2.6.9-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
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/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 acpi alsa apache2 berkdb bitmap-fonts crypt doc gif gpm ipv6 jp2 
jpeg libwww lzw lzw-tiff multilib mysql ncurses nls opengl oss pam perl png 
python readline ssl tcpd tiff truetype usb userlocales xml2 xpm xrandr xv zlib"
Comment 1 Chris Verges 2004-11-11 21:42:21 UTC
Seeing same issue on x86 32-bit platform.  SSL keys and some basic run-time directories are not being created.
Comment 2 Falador 2004-11-12 02:10:28 UTC
Had to create the following directories:
/etc/apache2/conf/ssl (install ssl certificates here)
/var/cache/apache2
/var/log/apache2
Comment 3 David Stanek 2004-11-16 20:01:20 UTC
This is the same as bug #70994
Comment 4 Sven Wegener gentoo-dev 2004-11-17 08:51:21 UTC

*** This bug has been marked as a duplicate of 70994 ***
Comment 5 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-23 20:40:31 UTC
Closing.