Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208374 - www-servers/apache-2.2.8 spelling error in /etc/conf.d/apache, APACHE3_OPTS at row 35
Summary: www-servers/apache-2.2.8 spelling error in /etc/conf.d/apache, APACHE3_OPTS a...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-01 00:58 UTC by Petter Blomberg
Modified: 2008-02-01 07:19 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 Petter Blomberg 2008-02-01 00:58:57 UTC
I just emerged www-servers/apache-2.2.8 and it wouldn't start:
root@pepparkaka# /etc/init.d/apache2 start                                                                                                                                                 
 * Starting apache2 ...
no listening sockets available, shutting down
Unable to open logs                                [ !! ]

After about an hour, I found the very simple error. Row 35 from /etc/conf.d/apache looks like this:
APACHE3_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D FASTCGI"

It should be APACHE2 and not APACHE3, of course. :)

Reproducible: Always

Steps to Reproduce:
1.emerge apache
2./etc/init.d/apache2 start

Actual Results:  
 * Starting apache2 ...
no listening sockets available, shutting down
Unable to open logs                                [ !! ]

Expected Results:  
Apache should have started.

root@pepparkaka# diff -u apache2.original apache2        #/etc/conf.d [0]
--- apache2.original	2008-02-01 04:03:58.000000000 +0100
+++ apache2	2008-02-01 04:03:14.000000000 +0100
@@ -32,7 +32,7 @@
 #  SSL_DEFAULT_VHOST  Enables default vhost for SSL (you should enable this
 #                     when you enable SSL)
 #
-APACHE3_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST"
+APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST"
 
 # Extended options for advanced uses of Apache ONLY
 # You don't need to edit these unless you are doing crazy Apache stuff



root@pepparkaka# emerge --info                   #/etc/conf.d [1]
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 AMD Athlon(tm) processor
Timestamp of tree: Thu, 31 Jan 2008 15:30:06 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 audit berkdb bitmap-fonts cli cracklib crypt dri fastcgi fortran gdbm gif gpm iconv ipv6 isdnlog jpeg midi mudflap mysql ncurses nfs nls nptl nptlonly offensive openmp pam pcre perl png pppd python readline reflection session spl ssl tcpd truetype truetype-fonts type1-fonts unicode vhosts x86 xorg xpm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-02-01 07:19:34 UTC
You must have hit ctl+a in vi while the caret was on the two. As one of the architecture developers who tested and marked stable this version of Apache only very recently, I can very safely say that I haven't seen this problem, or I would have filed a bug myself.

Furthermore, the apache-2.eclass doesn't reference a 3 anywhere where it ought to be 2 (see line 469 and onward in $PORTDIR/eclass/apache-2.eclass).

Other than that, I have apache-2.2.8 running on several systems where lesser versions were running already, and none of these systems proposed to change the 2 into a 3 all of a sudden.

I suggest you re-emerge apache-2.2.8 and see if etc-update (or dispatch-config) wants to turn the 3 back into a 2.