php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5895 httpd dies after being started
Submitted: 2000-08-01 12:59 UTC Modified: 2000-08-24 11:08 UTC
From: ryan at thrivecast dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.1pl2 OS: Linux 2.2.12
Private report: No CVE-ID: None
 [2000-08-01 12:59 UTC] ryan at thrivecast dot com
PHP 4.0.1pl2 ./configure options
--with-apxs=/home/httpd/bin/apxs
--enable-calendar
--enable-ftp
--with-gd
--with-imap=/usr/src/imap-4.5
--with-mysql=/usr
--with-config-file-path=/home/httpd/conf

Apache/1.3.12 (Unix) ./configure options
--with-layout=Apache
--prefix=/home/httpd
--server-uid=102
--server-gid=102
--enable-module=so

http_core.c, mod_so.c is there when i do httpd -l

I built PHP as a DSO, following the verbose INSTALL documentation. However after the compilation of Apache and PHP, Apache exits right after being started.

"LoadModule php4_module        libexec/libphp4.so" was added automatically by PHP "make install". If I comment out that line in Apache's httpd.conf, Apache starts up normally and doesn't exit.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-01 15:32 UTC] ryan at thrivecast dot com
Following bug id #5896, it works.

1) Shutdown httpd
2) Comment "LoadModule php4_module        libexec/libphp4.so"
3) Restart httpd
4) Uncomment "LoadModule php4_module        libexec/libphp4.so"
5) kill -HUP [httpd's pid]

What's wrong?
 [2000-08-01 23:42 UTC] waldschrott@php.net
Moved from bug #5896.

After some upgrade or even a reboot, Apache 1.3.12 dies on start with php-4.0.1pl2 as a
DSO.

The solution consists in the following process :

1. Comment the LoadModule and AddModule lines for PHP4 in httpd.conf
2. restart Apache
3. Edit httpd.conf to reactivate PHP4
4. restart Apache.

Weird, but that works.

Here is my ./configure :

#! /bin/sh
#
# Created by configure

"/usr/src/www/php-4.0.1pl2/configure" \
"--with-apxs=/usr/local/apache/sbin/apxs" \
"--with-config-file-path=/usr/local/apache/etc" \
"--enable-sigchild" \
"--disable-rpath" \
"--enable-calendar" \
"--with-gd" \
"--with-ttf" \
"--with-mysql=/usr" \
"--with-pgsql=shared,/usr/local/pgsql" \
"--enable-trans-sid" \
"--disable-debug" \
"--with-swf=/usr/lib/swf" \
"--with-zlib" \
"--enable-inline-optimization" \
"$@"


 [2000-08-02 15:04 UTC] waldschrott@php.net
user feedback: still appearing with snapshot from 08-01 or 08-02
 [2000-08-10 16:00 UTC] ryan at thrivecast dot com
Bug still appears in 200008091945.
 [2000-08-23 09:15 UTC] sniper@php.net
Have you checked what's in the apache error_log ??
And try re-compiling apache (with make clean before make) 

--Jani
 [2000-08-23 09:16 UTC] sniper@php.net
Status = Feedback.

--Jani
 [2000-08-23 09:23 UTC] ryan at thrivecast dot com
Apache's log files(access and error) says nothing at all. Apache exits before it writes to the log files.
 [2000-08-24 11:08 UTC] sniper@php.net
Set LD_PRELOAD=libpthread.so before starting apache.
(as mentioned on the php-dev list)
Or compile mysql without threads support.

As this isn't PHP problem at all (glibc2.1.3 bug) I close
this bug report.

--Jani


 [2003-06-27 08:28 UTC] tyler at homeworkers dot org
I'm getting this same problem with glibc-2.2.4 and php-4.3.2 but the work around with LD_PRELOAD doesn't work.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 17:01:33 2024 UTC