php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50369 PHP Crashing Apache on Win7x64
Submitted: 2009-12-03 04:36 UTC Modified: 2010-01-11 09:03 UTC
Votes:4
Avg. Score:4.2 ± 0.8
Reproduced:2 of 3 (66.7%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: amazingant111 at yahoo dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.2.11 OS: win32 only - Windows 7 x64
Private report: No CVE-ID: None
 [2009-12-03 04:36 UTC] amazingant111 at yahoo dot com
Description:
------------
On the 64-bit version of Windows 7, Apache runs well normally, but gives the message "The requested operation has failed!" when PHP in installed and loaded.

Reproduce code:
---------------
Using default php.ini with the following added into httpd.conf by the PHP installer:


#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Expected result:
----------------
The web server should begin running and start "serving" pages.

Actual result:
--------------
Apache service gives an error box with no useful information, but adds the following line to its error log:
[Wed Dec 02 23:14:35 2009] [warn] pid file C:/Apache/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

Changing error logging levels in httpd.conf doesn't return any additional information.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-03 04:43 UTC] amazingant111 at yahoo dot com
Tried with PHP 5.2.11, same results.
 [2010-01-11 08:54 UTC] a dot hidden dot figure at gmail dot com
The same situation occurred for me with Apache 2.2.14 and PHP 5.3.1 on Vista Ultimate SP2 x64. Commenting out the lines added by the PHP installer allowed the server to restart, thus hinting towards something being wrong with the PHP install.

I was able to get the server working with PHP by re-running the installer and changing the setup to remove the MSSQL extension, which is enabled by default in the installer. Even though I have a version of Microsoft SQL Server (2005 CE) on the computer, it is not properly set up (I've never had to use it; I had MySQL long beforehand), and thus it is apparent that the extension requires the software be both present and active to work.
 [2010-01-11 09:03 UTC] pajoye@php.net
It is not a crash but a missing DLL, which is not distributed by PHP and required by the mssql libraries/clients.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC