From: Operating system: Windows 7 (x64) PHP version: 5.3.1 Package: Apache2 related} Bug Type: Bug Bug description:Apache won't start after PHP 5.3.1 is installed
Description: ------------ This is a development desktop computer, not a production server. Windows 7 Home Premium 64-bit, fully patched Avast Antivirus, Home edition, fully patched Apache 2.2 installed via the full installer (apache_2.2.14-win32-x86-openssl-0.9.8k.msi) PHP 5.3.1 installed via the full installer (php-5.3.1-Win32-VC6-x86.msi) MySQL 5.1 is also installed and the service started, but I have not even attempted to connect yet, because Apache can't run. (mysql-5.1.44-winx64.msi) I had never downloaded any other/previous versions of Apache or PHP. All of the files I am dealing with came from these installers. Apache starts and runs fine until I install PHP and reboot Windows (PHP doesn't seem to work after the install until I reboot.) After I install PHP and reboot, Apache refuses to start. The Windows event log describes the failure: Event 1000 Description: Faulting application name: httpd.exe, version: 2.2.14.0, time stamp: 0x4ac181d6 Faulting module name: php5ts.dll, version: 5.3.1.0, time stamp: 0x4b051b35 Exception code: 0xc0000005 Fault offset: 0x000e618c Faulting process id: 0x10f4 Faulting application start time: 0x01caba41084e6e4e Faulting application path: C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd.exe Faulting module path: C:\Program Files (x86)\PHP\php5ts.dll Report Id: 46094170-2634-11df-80a6-00241d23de59 Apache's error log is not updated when this occurs. I'm guessing that is because the failure is before the logging is running. I found a few support threads here and elsewhere, where people cold generate similar problems by manually installing php5apache2_2.dll instead of php5apache2.dll (or vice versa). I'm on Apache 2.2 and using the correct php5apache2_2.dll, so that doesn't seem to be the problem. This is what was appended to the httpd.conf file by the PHP installer: #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:/Program Files (x86)/PHP/" LoadModule php5_module "C:/Program Files (x86)/PHP/php5apache2_2.dll" #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL The files php5apache2_2.dll and php5ts.dll are both present in the PHPIniDir, and seem to have completely normal security settings. Apache is running as System and System has full control of both files. I checked that the PHP Path entry and the PHPRC environment variable are set correctly. They are. Uninstalling, deleting, redownloading, and reinstalling the same version of PHP results in the same error. Uninstalling, deleting, downloading PHP 5.2.13 , and installing that version of PHP works just fine (php-5.2.13-win32-installer.msi). During the PHP 5.2.13 install I selected Apache 2.2 for the web server. I made no other configuration changes. It just worked. I'm running PHP 5.2.13 now. So I'll wait and retry 5.3.x later... Many thanks, Randy -- Edit bug report at http://bugs.php.net/bug.php?id=51185&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51185&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51185&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51185&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51185&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51185&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51185&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51185&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51185&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51185&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51185&r=support Expected behavior: http://bugs.php.net/fix.php?id=51185&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51185&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51185&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51185&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51185&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51185&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51185&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51185&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51185&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51185&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51185&r=mysqlcfg