Bug #52298 [Opn->Fbk]: Apache service won't start with PHP enabled
| From: | pajoye@php.net | Date: | Fri, 09 Jul 2010 07:21:38 +0000 |
| Subject: | Bug #52298 [Opn->Fbk]: Apache service won't start with PHP enabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152238@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52298&edit=1
ID: 52298
Updated by: pajoye@php.net
Reported by: murray at math dot umass dot edu
Summary: Apache service won't start with PHP enabled
-Status: Open
+Status: Feedback
Type: Bug
Package: Apache2 related
Operating System: Windows XP Pro (SP3)
PHP Version: 5.3.2
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-07-09 03:56:37] murray at math dot umass dot edu
Description:
------------
Summary: as soon as I add loading PHP 5.3.2 as a module, Apache 2.2.15
service won't start. Without the load, Apache service is OK; and PHP
from command line is OK.
What I did:
(1) Installed Apache 2.2.15 in a localhost config from
httpd-2.2.15-win32-x86-no_ssl.msi (also tried the openssl version when
the former + PHP didn't work). That worked just fine.
(2) Installed PHP 5.3.2 from php-5.3.2-Win32-VC6-x86.msi (thread safe),
which php.net says to use, as I read its instructions. (It says NOT to
use the VC9 version with apache.org binaries.)
Now the apache httpd service will not start. So of course I never got so
far as to try a .php script in the browser.
Of course I put the correct entries in PATH and PHPRC. My httpd.conf was
what the apache installer set up plus my changes in appropriate spots.
I retried everything after completely uninstalling both apache http and
PHP, again using httpd-2.2.15-win32-x86-no_ssl.msi but this time
installing PHP manually from php-5.3.2-Win32-VC6-x86.zip.
File httpd.conf is what the Apache installer set up plus my edits in
appropriate spots:
ServerName localhost:80
DocumentRoot "E:/htdocs"
<Directory "E:/htdocs">
LoadModule php5_module "D:/Server/PHP/php5apache2_2.dll"
PHPIniDir "D:/Server/PHP"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
My edits to php.ini are:
PHPIniDir "D:/Server/PHP/"
LoadModule php5_module "D:/Server/PHP/php5apache2_2.dll"
Apache error.log contains just:
[warn] pid file D:/Server/Apache2.2/logs/httpd.pid overwritten --
Unclean
shutdown of previous Apache run?
The Windows Event log, System view shows:
The Apache2.2 service terminated with service-specific error 1 (0x
1).
And Windows Even log, Application view shows:
Faulting application httpd.exe, version 2.2.15.0,
faulting module unknown, version 0.0.0.0,
fault address 0x0074f1a9.
Essentially the same bug has been reported in a number of user forums,
and I waited to see if anybody detected some configuration mistake, but
to no avail.
Test script:
---------------
I don't know how to do a back-trace, since I find no explanation
anywhere of what to do with the PHP debug-pack.
Expected result:
----------------
Apache 2.2.15 service starts.
Actual result:
--------------
Apache 2.2.15 service cannot start.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52298&edit=1