Crash with PHP, Apache and mod_perl
| From: | Ruud Campsteijn | Date: | Tue, 19 Sep 2000 21:35:34 +0000 |
| Subject: | Crash with PHP, Apache and mod_perl | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2466@lists.php.net to get a copy of this message | ||
Hello,
I have a problem getting my Apache server to work with PHP and mod_perl at
the same time.
My Apache 1.3.12 server using mod_perl 1.24 (compiled into the Apache
executable) and PHP 4.0.2 as a dynamic module (.so) crashes as soon as I
access it. For example, "lynx localhost" reports "unexpected network
errors", and then quits. Netscape just reports that the document is empty.
If I rebuild Apache and leave out mod_perl (but do load PHP), everything is
fine. If I leave mod_perl in but don't load the PHP module (i.e., comment
out the line in httpd.conf) everything is fine as well (except I don't have
PHP).
If I check /usr/local/apache/logs/error_log, it says: "Apache/1.3.12 (Unix)
PHP/4.0.2 mod_perl/1.24 configured -- resuming normal operations". As soon
as I access the server, a new line is added: "child pid nnn exit signal
Segmentation fault (11)"
PHP build was configured with:
./configure --with-mysql=/usr/local --with-apxs=/usr/local/apache/bin/apxs
No warnings at the end (i.e. no warning about e.g. a corrupted apxs script)
Built with just: make , followed by: make install
The php.ini file was just copied and renamed from php.ini-dist
Apache 1.3.12 was compiled with all default modules, with mod_so and
mod_perl added. The only thing I changed in httpd.conf is the server name,
which is set to 'www'.
mod_perl is version 1.24, built without any special options.
I use mysql 3.22.32. No additional options during build, just configure,
make, make
install.
For some technical bits, here's the gdb backtrack output:
#0 0x4039023a in ?? () from /usr/local/apache/libexec/libphp4.so
#1 0x80976b3 in ap_invoke_handler ()
#2 0x80aacc9 in process_request_internal ()
#3 0x80ab0e8 in ap_internal_redirect ()
#4 0x8074ffd in handle_dir ()
#5 0x80976b3 in ap_invoke_handler ()
#6 0x80aacc9 in process_request_internal ()
#7 0x80aad2c in ap_process_request ()
#8 0x80a25ce in child_main ()
#9 0x80a275c in make_child ()
#10 0x80a28b9 in startup_children ()
#11 0x80a2ee6 in standalone_main ()
#12 0x80a3673 in main ()
#13 0x400d79cb in __libc_start_main (main=0x80a332c <main>, argc=3,
argv=0xbffffb24, init=0x80627d0 <_init>, fini=0x814f61c <_fini>,
rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffffb1c)
at ../sysdeps/generic/libc-start.c:92
I have read a bunch of faqs and have recompiled all required components
several times using several different docs as a guide, but I still end up
having the same problem. I have checked the bugbase at bugs.php.net as well,
but to no avail.
If you need any more information, please contact me via e-mail.
Ruud.