php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51516 Apache 2.2 won't start after I install PHP (Using .MSI)
Submitted: 2010-04-09 01:35 UTC Modified: 2013-02-18 00:34 UTC
Votes:46
Avg. Score:4.6 ± 0.8
Reproduced:38 of 42 (90.5%)
Same Version:20 (52.6%)
Same OS:32 (84.2%)
From: sfoulk526 at gmail dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5.2.13 OS: Windows 7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sfoulk526 at gmail dot com
New email:
PHP Version: OS:

 

 [2010-04-09 01:35 UTC] sfoulk526 at gmail dot com
Description:
------------
After running the downloaded file, php-5.2.13-win32-installer.msi, my Apache no 
longer will start.  The error message I get is
"The requested operation has failed."

I have uninstalled PHP and Apache 2.2 works again.

???




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-30 23:06 UTC] nick at vastms dot com
I have this same problem, with the Windows .MSI.  Upgraded from 5.2.9 and got the same error as the reporter describes.  Tried reinstalling Apache 2.2 and PHP 5.2.13 completely from scratch and still got the same error.

I know that the problem isn't with setting up the httpd.conf configuration, because I tried manually setting it up and got the same error.

Also, the error doesn't leave any information in the Apache error logs.  Just crashes Apache.

Downgraded to 5.2.10 and it Apache starts again.
 [2010-04-30 23:23 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-04-30 23:23 UTC] pajoye@php.net
Please check your error log.

Also disable the extensions in php.ini to figure out which could cause problems.
 [2010-05-04 04:59 UTC] sensui at sohu dot com
To pajoye@php.net
In my case, when i installed php just with mysql entension, apache will be unable to start.
 [2010-05-04 09:31 UTC] pajoye@php.net
@sensui at sohu dot com

Are you sure that libmysql.dll is first in your PATH? The libmysql.dll we provide with our releases, which is in the PHP installation dir.
 [2010-08-18 22:37 UTC] levyianboss at gmail dot com
I have a fix.

I manage to check the error logs and i found that the new apache runs a thread. This means that you have to use the threadsafe version of php for it to work.

------------------------------
Just delete the current installation then go to php.net and download the threadsafe version. Make sure to make a back up of you ini file unless you want to start from scratch. Unzip the fresh copy and replace the ini file into the new directory. Everything should be good.

Hope this helps :)
 [2011-02-01 21:00 UTC] erik at zilkframe dot se
I did use the threadsafe version and still got this problem!?
 [2011-09-23 03:49 UTC] carl_armbruster at msn dot com
I had the same problem. This was in my httpd.conf file:

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

Although the path to PHP install was in my windows path (verified by typing path at the command line) it still required explicit paths:

#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

You can check for issues by starting at a command line to get debug info:

httpd.exe -e debug
 [2012-07-23 10:40 UTC] panama dot amanap at yahoo dot com dot au
Confirm using threadsafe VC6 (php-5.2.17-Win32-VC6-x86.msi)
The problem is as carl_armbruster described.
Fix your httpd.conf by fully qualifying the file paths.
Thanks for the hint.
 [2012-10-10 10:05 UTC] vinod dot wagh at infrasofttech dot com
Yeaaahhh !

Got it !

thats booldy MSI installer , messing with slashes . entry in httpd.conf should look like :
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
#PHPIniDir "C:/Program Files/PHP/"
#LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
 [2012-10-10 10:08 UTC] vinod dot wagh at infrasofttech dot com
Sorry , please ignore my previous commnets , I am wrong .
 [2012-10-29 06:38 UTC] xagic at yahoo dot com
Just installed PHP 5.2.17 on Apache 2.2.x and got the same problem.
Added full paths at the end of the Apache config file, and it works.
Cheers for the help.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 [2013-07-12 13:57 UTC] John at mcmillantech dot co dot uk
I've been plagued with the same problem. It turned out that I had installed incompatible versions of Apache and PHP.
 [2013-09-15 13:07 UTC] kyleferna at live dot com
the problem is in the php ini dir the moment that goes that error message doesnt 
come
 [2013-09-16 08:57 UTC] john at mcmillantech dot co dot uk
There are major compatibility issues with Apache and PHP. You must use the thread safe version of PHP. Only the later versions of Apache work with Windows 7. I have written up some instructions at http://johnrmcmillan.wordpress.com/2013/07/25/installing-apache-and-php-on-windows.
 [2014-07-14 21:08 UTC] reedisawesome101 at gmail dot com
I need Help
-----------------

when i do everything that the other people said, it still does not work
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC