Author |
|
Rocker
Joined: 26 Feb 2012 Posts: 16 Location: Brazil
|
Posted: Sun 26 Feb '12 21:57 Post subject: Apache has encountered a problem with php5_module |
|
|
Hi, all.
First, sorry for my English, I'm not fluent yet.
I'm having a problem with Apache and PHP.
When I try to start Apache with httpd.conf calling a "LoadModule php5_module", I get a "Apache HTTP server has encountered a problem and needs to close. We are sorry for the inconvenience."
But, if I comment this line, Apache starts fine...
I'm using Apache 2.2 (downloaded from apache.org) and
PHP 5.3.5 VC6 TS (downloaded from windows.php.net).
Thanks in advance |
|
Back to top |
|
Rocker
Joined: 26 Feb 2012 Posts: 16 Location: Brazil
|
Posted: Sun 26 Feb '12 21:59 Post subject: |
|
|
OBS: I'm running Windows XP SP3. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sun 26 Feb '12 22:10 Post subject: |
|
|
For PHP 5.3 TS you need a VC9 build Apache (eg. from here), the one from apache.org can trouble.
See on the left at http://windows.php.net/download/
The lines you have to place your httpd.conf are normally :
# Add to your httpd.conf
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
Note: Remember to substitute the c:/php for your actual path to PHP in the above example.
Steffen |
|
Back to top |
|
Rocker
Joined: 26 Feb 2012 Posts: 16 Location: Brazil
|
Posted: Sun 26 Feb '12 22:19 Post subject: |
|
|
Hi,
PHP 5.3.5 VC9, both TS and NTS, doesn't have "Install as Apache module" option on its installing archive.
I have tried to install them before.
Should I try to install anyway?
One more OBS: Apache 2.2 + PHP 5.3.5 VC6 TS run perfectly on Windows 7 Ultimate (my friend's computer). |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sun 26 Feb '12 23:37 Post subject: |
|
|
Yep, from a little trial and error you learn.
Steffen |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Mon 27 Feb '12 5:42 Post subject: |
|
|
NTS versions I do not believe have the modules, since they are Not Thread Safe and Apache is a threaded server, Last I looked the TS ones had them in it. 5.2.10 does for sure since I just looked. |
|
Back to top |
|
Rocker
Joined: 26 Feb 2012 Posts: 16 Location: Brazil
|
Posted: Mon 27 Feb '12 15:41 Post subject: |
|
|
I couldn't do it yesterday.
Today, I Backup'd php.ini, uninstalled PHP 5.3.5 VC6 TS, and installed PHP 5.3.10 VC9 TS.
Worked!
Thanks so much. |
|
Back to top |
|