View previous topic :: View next topic |
Author |
Message |
oldnavy23 Tux's lil' helper
Joined: 09 Jul 2007 Posts: 86 Location: USA
|
Posted: Mon Nov 26, 2012 5:31 am Post subject: apache 2.4 issue |
|
|
I have an issue with apache and when i reboot my server it gives me the error below.
AH00526: Syntax error on line 60 of /etc/apache2/modules.d/40_mod_ssl.conf:
Invalid Mutex directory in argument file:/var/run/apache_ssl_mutex
Info From Emerge --info apache
Code: |
Portage 2.1.11.31 (default/linux/amd64/10.0/server, gcc-4.5.4, glibc-2.15-r3, 3. 5.7-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-AMD_Athlon-tm-_II_X4_620_Processor-with- gentoo-2.1
Timestamp of tree: Sun, 25 Nov 2012 17:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p37
dev-java/java-config: 2.1.12
dev-lang/python: 2.7.3-r2, 3.2.3
dev-util/cmake: 2.8.10.1
dev-util/pkgconfig: 0.27.1
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.9.6-r3, 1.11.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.5.4
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apac he2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-a ctive/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revd ep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild -locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms s trict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/ distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 apng ban berkdb bind bzip2 cairo cgi cli cracklib crypt c trls ctype cxx dbus dri fortran ftp gd gdbm glib gpm hal iconv ipv6 jadetex mmx modules mudflap multilib ncurses nls nodot nptl openmp openssl pam pcre php pppd proxy proxy_connect python readline rpm ruby session sftp shaper snmp soap sock ets sse sse2 ssl symlink tcpd threads tidy tk truetype unicode vboxwebsrv xml zi p zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu1 0k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 t rident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat li near meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2 _MODULES="auth_basic authz_user authz_owner gd cgid unixd authn_core authz_core unique_id socache_shmcb dir authn_default authn_anon authz_default speling image map setenvif prefork dir mime alias vhost_alias cgi source autoindex status rewr ite authz_host cache log_config log_forensic" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGIN S="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOL S="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf supersta r2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev vmmouse" KERNEL="linux" LC D_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text " LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="ph p5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY _TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quo ta2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LING UAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_ RSYNC_EXTRA_OPTS, USE_PYTHON
=================================================================
Package Settings
=================================================================
www-servers/apache-2.4.3 was built with the following:
USE="(multilib) ssl threads -debug -doc -ldap (-selinux) -static -suexec" APACHE 2_MODULES="alias auth_basic authn_anon authn_core authz_core authz_host authz_ow ner authz_user autoindex cache cgi cgid dir imagemap log_config log_forensic mim e rewrite setenvif socache_shmcb speling status unique_id unixd vhost_alias -acc ess_compat -actions -asis -auth_digest -authn_alias -authn_dbd -authn_dbm -authn _file -authz_dbm -authz_groupfile -cache_disk -cern_meta -charset_lite -dav -dav _fs -dav_lock -dbd -deflate -dumpio -env -expires -ext_filter -file_cache -filte r -headers -ident -include -info -lbmethod_bybusyness -lbmethod_byrequests -lbme thod_bytraffic -lbmethod_heartbeat -logio -mime_magic -negotiation -proxy -proxy _ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -proxy_scgi -reqtimeo ut -slotmem_shm -substitute -userdir -usertrack -version" APACHE2_MPMS="-event - itk -peruser -prefork -worker"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--no-as-needed"
|
Brand new setup and is x86_64 build if i remove the -D SSL and -D SSL_Default_vhost it works fine and also if i do
emerge apache then add the -d ssl back to the config file and restart just apache it works but a reboot breaks this. ????
Thanks for any feedback on what i might be missing. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
|
Back to top |
|
|
hydrapolic Tux's lil' helper
Joined: 07 Feb 2008 Posts: 126
|
Posted: Tue Nov 27, 2012 2:21 pm Post subject: |
|
|
https://bugs.gentoo.org/show_bug.cgi?id=438758
The /var/run/apache_ssl_mutex directory needs to be created. However, this has to be done after each machine reboot. A simple fix is to modify /etc/init.d/apache:
Code: |
start() {
[ ! -e /var/run/apache_ssl_mutex ] && mkdir /var/run/apache_ssl_mutex
checkconfig || return 1
ebegin "Starting ${SVCNAME}"
# Use start stop daemon to apply system limits #347301
start-stop-daemon --start -- ${APACHE2} ${APACHE2_OPTS} -k start
|
Open up the init script and add the line that creates the apache_ssl_mutex directory. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Tue Nov 27, 2012 4:49 pm Post subject: |
|
|
Use this : Code: | start() {
checkpath --directory /var/run/apache_ssl_mutex <-----------------
checkconfig || return 1
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|