php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22815 Apache doesn't start
Submitted: 2003-03-21 09:52 UTC Modified: 2003-03-25 16:12 UTC
From: busia at tiscali dot it Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.3.2RC1 OS: Linux Redhat 7.2
Private report: No CVE-ID: None
 [2003-03-21 09:52 UTC] busia at tiscali dot it
I have installed PHP4.3.2RC1 on apache 2.0.44.

Apache doesn't start. In the error_log I see:
-------------------------
[Fri Mar 21 16:19:46 2003] [notice] Digest: generating secret for digest authentication ...
[Fri Mar 21 16:19:46 2003] [notice] Digest: done
-------------------------

instead of:
-------------------------
[Fri Mar 21 16:53:02 2003] [notice] Digest: generating secret for digest authentication ...
[Fri Mar 21 16:53:02 2003] [notice] Digest: done
[Fri Mar 21 16:53:03 2003] [notice] Apache/2.0.44 (Unix) configured -- resuming normal operations
-------------------------

PHP configure:
./configure --enable-track-vars --prefix=/usr --exec-prefix=/usr --libexecdir=/usr/lib/apache --bindir=/usr/bin --sbindir=/usr/sbin --datadir=/home/httpd --sysconfdir=/etc/httpd/conf --localstatedir=/var --libdir=/usr/lib/apache --includedir=/usr/include/apache --mandir=/usr/man --with-mysql=/usr --with-config-file-path=/usr/local/Zend/etc --enable-memory-limit --with-zlib --with-apxs2

Apache 2.0.44 configure:
./configure --enable-layout=RedHat --datadir=/home/httpd --enable-auth-digest --enable-ext-filter --enable-cgi --enable-vhost-alias --disable-include --enable-deflate --enable-mime-magic --enable-expires --enable-headers --enable-usertrack --enable-unique-id --enable-http --disable-userdir --enable-so --with-mpm=worker

in httpd.conf:
LoadModule php4_module        /etc/httpd/modules/libphp4.so
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-21 15:58 UTC] busia at tiscali dot it
I have also tried lastest 4.3.x stable snapshot from snaps.php.net. The problem persists
 [2003-03-21 16:09 UTC] moriyoshi@php.net
Using Apache2 SAPI module in worker model is highly discouraged because PHP has not completely been confirmed to be a thread-safe implementation. If you even want to use it within such a real threaded environment, you have to specify --enable-experimental-zts in the configure line.

Then try configuring Apache2 to use prefork model and see if the problem still persists.

 [2003-03-21 16:34 UTC] busia at tiscali dot it
I have tried --enable-experimental-zts without success. I'll try to test with the worker MPM but it's an "online" server and it should be not possible. I'll let you know.
 [2003-03-21 17:05 UTC] sniper@php.net
Does it crash? Try with starting httpd withing gdb:

# gdb httpd
(gdb) run -X



 [2003-03-21 17:39 UTC] busia at tiscali dot it
The parent process remains active but it seems to wait something that doesn't happen. it seems apache cannot complete startup process and wait, wait, wait.

I noticed one thing: apache doesn't create pid file, it doesn't arrive to create it.

Using the old php4.4dev "200301041230" snapshot version all works well (it is the version that was installed before I tried to install php4.3.2RC1"

outpuyt of gdb WITHOUT --enable-experimental-zts
------------------------------------
Starting program: /usr/sbin/httpd -X
[New Thread 1024 (LWP 12706)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 12706)]
0x403c6ddf in zend_register_functions (functions=0x40414420,
    function_table=0x0, type=1, tsrm_ls=0x8165880)
    at /home/archivi/php-4.3.2RC1/Zend/zend_API.c:1034
1034                    target_function_table = CG(function_table);
------------------------------------

output of gdb WITH --enable-experimental-zts
------------------------------------
Starting program: /usr/sbin/httpd -X
[New Thread 1024 (LWP 12738)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 12738)]
0x403c0e6f in zend_register_functions (functions=0x4040d0c0,
    function_table=0x0, type=1, tsrm_ls=0x8165880)
    at /home/archivi/php-4.3.2RC1/Zend/zend_API.c:1034
1034                    target_function_table = CG(function_table);
------------------------------------
 [2003-03-21 18:54 UTC] ianh@php.net
I've seen this too with the worker MPM.
but mine segfaults somewhere in a mutex_open/mutex_lock.

I'll try enabling-zts on mine and see if that problem persists.

The recommened solution is to use the PREFORK mpm, which doesn't use threading.
If I get some time this weekend I'll try to reproduce it. 
BTW.. does this happen with 4.3.1?
 [2003-03-22 17:26 UTC] busia at tiscali dot it
I cannot change to prefork model, I upgraded to apache 2 only to have less resource usage using threads instead of prefork. I'd have to take two servers, instead of one, to host my site.

Until this bug will be fixed I'll have to use the old php4.4dev "200301041230" snapshot version without upgrading possibilities.
 [2003-03-25 09:53 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

There was a bug fixed today that may have prevented the operation of Apache2handler under ZTS.
 [2003-03-25 16:12 UTC] busia at tiscali dot it
The problem seems to be fixed. Now it works, many thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC