Bug #51516 [Com]: Apache 2.2 won't start after I install PHP (Using .MSI)

From: Date: Wed, 10 Oct 2012 10:08:03 +0000
Subject: Bug #51516 [Com]: Apache 2.2 won't start after I install PHP (Using .MSI)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-173985@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=51516&edit=1

 ID:                 51516
 Comment by:         vinod dot wagh at infrasofttech dot com
 Reported by:        sfoulk526 at gmail dot com
 Summary:            Apache 2.2 won't start after I install PHP (Using
                     .MSI)
 Status:             Feedback
 Type:               Bug
 Package:            Apache2 related
 Operating System:   Windows 7
 PHP Version:        5.2.13
 Block user comment: N
 Private report:     N

 New Comment:

Sorry , please ignore my previous commnets , I am wrong .


Previous Comments:
------------------------------------------------------------------------
[2012-10-10 10:05:54] 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-07-23 10:40:35] 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.

------------------------------------------------------------------------
[2011-09-23 03:49:00] 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

------------------------------------------------------------------------
[2011-02-01 21:00:13] erik at zilkframe dot se

I did use the threadsafe version and still got this problem!?

------------------------------------------------------------------------
[2010-08-18 22:37:53] 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 :)

------------------------------------------------------------------------


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

    https://bugs.php.net/bug.php?id=51516


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=51516&edit=1


Thread (17 messages)

« previous php.bugs (#173985) next »