#33292 [Fbk->Opn]: apache_get_modules crashes

From: Date: Tue, 14 Jun 2005 15:39:09 +0000
Subject: #33292 [Fbk->Opn]: apache_get_modules crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80326@lists.php.net to get a copy of this message
ID: 33292 User updated by: doug_craig at charter dot net Reported By: doug_craig at charter dot net -Status: Feedback +Status: Open Bug Type: Apache related Operating System: Win 2000 5.00.2195 sp4 PHP Version: 5CVS-2005-06-10 (dev) New Comment: Unfortunately, I cannot reinstall Apache any time soon due to critical projects I'm working on. I can tell you that I started with Apache 2 originally and retreated to Apache 1 when I had threading problems with Apache/PHP that crashed Apache. The crash in that case was different (not just a problem with apache_get_modules() ). For the record the Apache error.log for that crash was: [Wed Jun 08 09:38:15 2005] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Wed Jun 08 09:38:15 2005] [notice] Apache/2.0.53 (Win32) PHP/5.0.4 configured -- resuming normal operations [Wed Jun 08 09:38:15 2005] [notice] Server built: Feb 10 2005 06:11:34 [Wed Jun 08 09:38:15 2005] [notice] Parent: Created child process 3880 [Wed Jun 08 09:38:15 2005] [notice] Child 3880: Child process is running [Wed Jun 08 09:38:15 2005] [notice] Child 3880: Acquired the start mutex. [Wed Jun 08 09:38:15 2005] [notice] Child 3880: Starting 250 worker threads. I was not able to isolate the PHP code that caused the crash . It was a vanilla Serendipity installation that worked for everyone else... except me. Thus their suggestion that I fall back to Apache 1. I don't see the above crash now, just the problem with apache_get_modules. Do you have any other suggestions for my current configuration? Previous Comments: ------------------------------------------------------------------------ [2005-06-14 01:14:48] sniper@php.net Can you try this with Apache2 too? ------------------------------------------------------------------------ [2005-06-14 01:02:06] doug_craig at charter dot net The expected results are copied from the PHP online documentation for apache_get_modules(). I've never actually seen the output of the function. Remember... that's what we're trying to fix :) My only PHP changes to httpd.conf are: LoadModule php5_module "c:/php/php5apache.dll" ... AddModule mod_php5.c ... <IfModule mod_dir.c> DirectoryIndex index.html index.php </IfModule> ... <IfModule mod_mime.c> TypesConfig conf/mime.types AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> I believe this is correct for PHP 5 only. Actually, I've never even downloaded, much less installed, PHP 4. So I don't think there could be a conflict. ------------------------------------------------------------------------ [2005-06-13 23:33:40] sniper@php.net Your expected result contains 'sapi_apache2' module, yet you're saying you use Apache 1.3.33 ? Are you possibly trying to load wrong PHP sapi module? Or are you trying to load both PHP 4 and 5 sapi modules the same time? ------------------------------------------------------------------------ [2005-06-13 18:04:59] doug_craig at charter dot net Stopped Apache service Uninstalled working 5.0.4 PHP Deleted C:\PHP tree Removed php.ini from C:\WINNT Confirmed no PHP DLLs in WINNT tree Unzipped snapshot (6/11/2005 4:54PM) into C:\PHP Copied php.ini-recommended to php.ini Set extension_dir to C:\PHP\ext in php.ini Uncommented extension=php_mysql.dll in php.ini Confirmed C:\PHP in PATH Confirmed PHPRC=C:\PHP in environment PHP LoadModule, AddModule, AddType in httpd.conf Started Apache service... running phpinfo() confirms 5.1.0-dev is running apache_get_modules() call gives same error :( One conclusion: PHP supplied 5.0.4 installer should not be used for 5.1 Other information: The only non-default Apache module I'm loading is PHP I am running localhost most of the time for Apache I am running Apache from port 888 For kicks I reconfig'd for standard port. Same error. ------------------------------------------------------------------------ [2005-06-13 11:23:59] sniper@php.net You don't need to use some installer, just plain copy the files..with apache, you can set the path to the libphp5.dll in the httpd.conf yourself.. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33292 -- Edit this bug report at http://bugs.php.net/?id=33292&edit=1

« previous php.bugs (#80326) next »