| View previous topic :: View next topic |
| Author |
Message |
sabel n00b

Joined: 27 Nov 2003 Posts: 13
|
Posted: Tue Sep 16, 2008 9:52 pm Post subject: apache configtest segfaults |
|
|
Hi all,
I cannot start my apache via the init-script anymore. It segfaults everytime.
I figured out, that the problem is the configtest provided by apache.
| Code: |
mia ~ # /etc/init.d/apache2 configtest
* Checking Apache Configuration ...
/etc/init.d/apache2: line 43: 22582 Segmentation fault ${APACHE2} ${APACHE2_OPTS} -t > /dev/null 2>&1
* Apache2 has detected a syntax error in your configuration files:
Syntax OK
/etc/init.d/apache2: line 43: 22584 Segmentation fault ${APACHE2} ${APACHE2_OPTS} -t [ !! ]
|
| Code: |
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D PROXY -D MACRO -D DAV -D SVN -D SVN_AUTHZ -D STATUS -D PHP5"
|
If I remove the -D PHP5 parameter in my config, the init-script works fine.
When I start apache manually it works also WITH -D PHP5!
| Code: |
apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D PROXY -D MACRO -D DAV -D SVN -D SVN_AUTHZ -D STATUS -D PHP5
|
I compiled apache several times and also did a revdep-rebuild.
Any ideas? |
|
| Back to top |
|
 |
weisso5 Apprentice


Joined: 07 Dec 2007 Posts: 268 Location: NYC
|
Posted: Wed Sep 17, 2008 3:10 pm Post subject: |
|
|
emerge --info plz and emerge -pv apache php
thanks,
weisso |
|
| Back to top |
|
 |
sabel n00b

Joined: 27 Nov 2003 Posts: 13
|
Posted: Wed Sep 17, 2008 3:44 pm Post subject: |
|
|
| Code: |
mia ~ # emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Wed, 17 Sep 2008 12:20:01 +0000
app-shells/bash: 3.2_p33
dev-java/java-config: 2.1.6
dev-lang/python: 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.61-r2
sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bash-completion berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gnutls gpm iconv idn ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 sse3 ssl tcpd unicode utf8 vim-syntax xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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 i810 mach64 mga neomagic 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, FFLAGS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
| Code: |
mia ~ # emerge -pv apache php
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] www-servers/apache-2.2.9-r1 USE="ssl -debug -doc -ldap (-selinux) -sni -static -suexec -threads" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -authn_alias -cern_meta -charset_lite -dumpio -log_forensic -proxy_ftp -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 0 kB
[ebuild R ] dev-lang/php-5.2.6-r7 USE="apache2 berkdb bzip2 calendar cli crypt ctype ftp gd gdbm iconv imap ipv6 json mysql ncurses nls pcre readline reflection session spl ssl suhosin truetype unicode xml zip zlib (-adabas) -bcmath (-birdstep) -cdb -cgi -cjk -concurrentmodphp -curl -curlwrappers -db2 -dbase (-dbmaker) -debug -discard-path -doc (-empress) (-empress-bcs) (-esoob) -exif -fastbuild (-fdftk) -filter (-firebird) -flatfile -force-cgi-redirect (-frontbase) -gd-external -gmp -hash -inifile -interbase -iodbc (-java-external) -kerberos -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pic -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -soap -sockets (-solid) -spell -sqlite (-sybase) (-sybase-ct) -sysvipc -threads -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip-external" 0 kB
Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
|
|
|
| Back to top |
|
 |
weisso5 Apprentice


Joined: 07 Dec 2007 Posts: 268 Location: NYC
|
Posted: Wed Sep 17, 2008 4:12 pm Post subject: |
|
|
| have you stopped and then started apache since your rebuilt? |
|
| Back to top |
|
 |
sabel n00b

Joined: 27 Nov 2003 Posts: 13
|
Posted: Wed Sep 17, 2008 4:17 pm Post subject: |
|
|
yap, I did a restart after my last rebuild.
apache stopped but didn't start again.
at the moment it is running manually (apache2 -D PHP5 ...) |
|
| Back to top |
|
 |
weisso5 Apprentice


Joined: 07 Dec 2007 Posts: 268 Location: NYC
|
Posted: Wed Sep 17, 2008 5:06 pm Post subject: |
|
|
can you add:
| Code: |
STARTUPERRORLOG="/var/log/apache2/startuperror.log"
|
to /etc/conf.d/apache2
and then stop/start apache, and see if the log explains a bit more.
Because i cannot reproduce this, :/
-weisso |
|
| Back to top |
|
 |
sabel n00b

Joined: 27 Nov 2003 Posts: 13
|
Posted: Wed Sep 17, 2008 5:19 pm Post subject: |
|
|
here's what it writes into the logfile
| Code: |
mia ~ # /etc/init.d/apache2 start
/etc/init.d/apache2: line 43: 27697 Speicherzugriffsfehler ${APACHE2} ${APACHE2_OPTS} -t > /dev/null 2>&1
* Apache2 has detected a syntax error in your configuration files:
/etc/init.d/apache2: line 43: 27699 Speicherzugriffsfehler ${APACHE2} ${APACHE2_OPTS} -t
mia ~ # cat /var/log/apache2/startuperror.log
Syntax OK
Syntax OK
|
|
|
| Back to top |
|
 |
richard.scott Veteran

Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Mon Sep 22, 2008 9:41 am Post subject: |
|
|
Have you ran etc-update since your rebuild?
There have been changes in /etc/init.d/apache2 depending on which version you upgraded from.
Also, the paths for the log dirs have changed too.
I now need to put in the full path for the log files i.e.:
| Code: | CustomLog /var/log/apache2/access.log combined
ErrorLog /var/log/apache2/error.log |
This caused me problems for a while until I realised it needed to be changed. |
|
| Back to top |
|
 |
sabel n00b

Joined: 27 Nov 2003 Posts: 13
|
Posted: Mon Sep 22, 2008 3:21 pm Post subject: |
|
|
I solved the problem!
After experiencing some error messages like
| Code: |
[Mon Sep 22 16:36:36 2008] [error] (20014)Internal error: DBD: Can't connect to mysql
[Mon Sep 22 16:36:36 2008] [error] [client 79.234.219.188] Failed to acquire database connection to look up user 'sabel'
|
I found out that the problem were apr-1.3.2 and apr-util-1.3.2. After a downgrade to versions under 1.3.x everything worked again.
I also found this bug report via google: http://bugs.php.net/bug.php?id=45995 |
|
| Back to top |
|
 |
|