#33292 [Opn->Fbk]: apache_get_modules crashes

From: Date: Mon, 13 Jun 2005 23:14:49 +0000
Subject: #33292 [Opn->Fbk]: apache_get_modules crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80271@lists.php.net to get a copy of this message
ID: 33292 Updated by: sniper@php.net Reported By: doug_craig at charter dot net -Status: Open +Status: Feedback Bug Type: Apache related Operating System: Win 2000 5.00.2195 sp4 PHP Version: 5CVS-2005-06-10 (dev) New Comment: Can you try this with Apache2 too? Previous Comments: ------------------------------------------------------------------------ [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.. ------------------------------------------------------------------------ [2005-06-12 00:02:18] doug_craig at charter dot net For reinstalls I do an uninstall and then delete C:\PHP then unzip to C:\PHP. I'm not copying any dlls outside of the PHP tree and my extension_dir is set to C:\PHP\ext The only extension I'm specifying is MySQL Is php-5.0.4-installer.exe (what I'm using) compatible with 5.1, or does it copy any dlls outside of PHP tree? Thanks for your help. ------------------------------------------------------------------------ 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 (#80271) next »