Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70917 - 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
Summary: apache 2.0.52-r1 fails to start through init.d throwing up a log error, and a...
Status: VERIFIED DUPLICATE of bug 70994
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 21:34 UTC by Max Cizauskas
Modified: 2005-04-23 20:40 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 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.