phpbar.de logo

Mailinglisten-Archive

[php] Kann Apache mit mod_php nicht starten

[php] Kann Apache mit mod_php nicht starten

Alexander Skwar php_(at)_phpcenter.de
Mon, 8 Jul 2002 07:14:06 +0200


Hallo.

Hmm, scheint so, als ob PHP doch nicht so ganz erfolgreich kompiliert
wurde....

Ich habe PHP jetzt folgendermaßen kompiliert:

CFLAGS="-O2 -m486 -fno-strength-reduce -fPIC -DHAVE_LIBDL=1 \
        -I'/usr/include/mysql' -I/usr/include/gd" \
LDFLAGS=        \
EXTRA_LIBS="-L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl \
        -lm -L/usr/X11R6/lib/ -lpng -lXpm -lssl" \
./configure i386-suse-linux --prefix=/usr/share
--datadir=/usr/share/php --bindir=/usr/bin --libdir=/usr/share
--includedir=/usr/include --with-config-file-path=/etc
--with-exec-dir=/usr/lib/php/bin --with-mm --enable-versioning
--enable-yp --enable-bcmath --enable-trans-sid
--enable-inline-optimization --enable-track-vars --enable-magic-quotes
--enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-shmop --enable-calendar --enable-mbstring
--enable-mbstr-enc-trans --enable-exif --enable-memory-limit
--enable-wddx --enable-filepro --enable-dbase --enable-ctype
--disable-debug --enable-force-cgi-redirect --enable-discard-path
--enable-sigchild --with-pear=/usr/share/php/pear --with-pgsql=/usr
--with-mysql=/usr --with-imap=yes --with-imap --with-imap-ssl
--with-curl --enable-cli --with-mhash --with-ming --with-recode
--with-iconv --with-dom --with-dom-xslt --with-dom-exslt --with-gd=yes
--enable-gd-native-ttf --enable-gd-imgstrttf --with-tiff-dir=/usr
--with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr/X11R6
--with-ttf --with-freetype --with-freetype-dir=/usr/include/freetype2
--with-t1lib --with-zlib=yes --with-bz2 --with-gmp --with-mcal=/usr
--with-sablot --with-ftp --enable-ftp --with-gdbm --with-ndbm
--with-qtdom=/usr/lib/qt --with-openssl --with-gettext --with-mcrypt
--enable-dbx --enable-mbregex --with-apxs=/usr/sbin/apxs
--with-pgsql=/usr --with-mysql=/usr --with-imap=yes
--with-imap --with-imap-ssl --with-curl --enable-cli --with-mhash
--with-ming --with-recode --with-iconv --with-dom --with-dom-xslt
--with-dom-exslt --with-gd=yes --enable-gd-native-ttf
--enable-gd-imgstrttf --with-tiff-dir=/usr --with-jpeg-dir=/usr
--with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-ttf --with-freetype
--with-freetype-dir=/usr/include/freetype2 --with-t1lib --with-zlib=yes
--with-bz2 --with-gmp --with-mcal=/usr --with-sablot --with-ftp
--enable-ftp --with-gdbm --with-ndbm --with-qtdom=/usr/lib/qt
--with-openssl --with-gettext --with-mcrypt

Wenn ich nun apache neu starte, erhalte ich einen Segmentation Fault.
Hier mal die letzten paar Zeilen eines strace Laufs (den kompletten
strace gibt's auf http://digitalprojects.com/php-strace.txt):

open("./php.ini", O_RDONLY|O_LARGEFILE) = 5
getcwd("/etc", 4095)                    = 5
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/etc/php.ini", {st_mode=S_IFREG|0644, st_size=28100, ...}) = 0
brk(0x8379000)                          = 0x8379000
ioctl(5, TCGETS, 0xbffff3bc)            = -1 ENOTTY (Inappropriate ioctl for
device)
fstat64(5, {st_mode=S_IFREG|0644, st_size=28100, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40e6a000
read(5, "[PHP]\n; $Id: php.ini-dist,v 1.78"..., 8192) = 8192
read(5, "desired error\n; reporting level\n"..., 8192) = 8192
read(5, "dll\n;extension=php_ifx.dll\n;exte"..., 8192) = 8192
brk(0x837a000)                          = 0x837a000
brk(0x837b000)                          = 0x837b000
read(5, "ession.entropy_length = 16\n\n;ses"..., 8192) = 3524
read(5, "", 4096)                       = 0
brk(0x837c000)                          = 0x837c000
read(5, "", 8192)                       = 0
ioctl(5, TCGETS, 0xbfffe7f8)            = -1 ENOTTY (Inappropriate ioctl for
device)
close(5)                                = 0
munmap(0x40e6a000, 4096)                = 0
brk(0x837d000)                          = 0x837d000
brk(0x837e000)                          = 0x837e000
brk(0x837f000)                          = 0x837f000
brk(0x8380000)                          = 0x8380000
brk(0x8381000)                          = 0x8381000
brk(0x8382000)                          = 0x8382000
brk(0x8383000)                          = 0x8383000
brk(0x8384000)                          = 0x8384000
brk(0x8385000)                          = 0x8385000
brk(0x8386000)                          = 0x8386000
brk(0x8387000)                          = 0x8387000
brk(0x8388000)                          = 0x8388000
brk(0x8389000)                          = 0x8389000
brk(0x838a000)                          = 0x838a000
brk(0x838b000)                          = 0x838b000
brk(0x838c000)                          = 0x838c000
brk(0x838d000)                          = 0x838d000
brk(0x838e000)                          = 0x838e000
brk(0x838f000)                          = 0x838f000
brk(0x8390000)                          = 0x8390000
brk(0x8391000)                          = 0x8391000
brk(0x8392000)                          = 0x8392000
brk(0x8393000)                          = 0x8393000
open("/etc/ld.so.cache", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=22205, ...}) = 0
old_mmap(NULL, 22205, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40e6a000
close(5)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300!\0"..., 1024) =
1024
fstat64(5, {st_mode=S_IFREG|0755, st_size=45903, ...}) = 0
old_mmap(NULL, 40676, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x40e70000
mprotect(0x40e79000, 3812, PROT_NONE)   = 0
old_mmap(0x40e79000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 5,
0x8000) = 0x40e79000
close(5)                                = 0
munmap(0x40e6a000, 22205)               = 0
open("/etc/protocols", O_RDONLY)        = 5
shmat(5, 0x1, 0x1)                      = ?
shmat(5, 0x1, 0x2)                      = ?
fstat64(5, {st_mode=S_IFREG|0644, st_size=6327, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40e6a000
read(5, "#\n# protocols\tThis file describe"..., 4096) = 4096
close(5)                                = 0
munmap(0x40e6a000, 4096)                = 0
open("/etc/protocols", O_RDONLY)        = 5
shmat(5, 0x1, 0x1)                      = ?
shmat(5, 0x1, 0x2)                      = ?
fstat64(5, {st_mode=S_IFREG|0644, st_size=6327, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40e6a000
read(5, "#\n# protocols\tThis file describe"..., 4096) = 4096
close(5)                                = 0
munmap(0x40e6a000, 4096)                = 0
brk(0x8395000)                          = 0x8395000
brk(0x8396000)                          = 0x8396000
brk(0x8398000)                          = 0x8398000
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

Was mir als einziges auffällt, ist:

ioctl(5, TCGETS, 0xbfffe7f8)            = -1 ENOTTY (Inappropriate ioctl for
device)

Jemand eine Idee was faslch ist?

Alexander Skwar
--
How to quote:	http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:	http://www.iso-top.de      |    Jabber: askwar_(at)_a-message.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
                       Uptime: 21 hours 28 minutes


php::bar PHP Wiki   -   Listenarchive