logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Apache has encountered a problem with php5_module
Author
Rocker



Joined: 26 Feb 2012
Posts: 16
Location: Brazil

PostPosted: Sun 26 Feb '12 21:57    Post subject: Apache has encountered a problem with php5_module Reply with quote

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

PostPosted: Sun 26 Feb '12 21:59    Post subject: Reply with quote

OBS: I'm running Windows XP SP3.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sun 26 Feb '12 22:10    Post subject: Reply with quote

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

PostPosted: Sun 26 Feb '12 22:19    Post subject: Reply with quote

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

PostPosted: Sun 26 Feb '12 23:37    Post subject: Reply with quote

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

PostPosted: Mon 27 Feb '12 5:42    Post subject: Reply with quote

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

PostPosted: Mon 27 Feb '12 15:41    Post subject: Reply with quote

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


Reply to topic   Topic: Apache has encountered a problem with php5_module View previous topic :: View next topic
Post new topic   Forum Index -> Other Software