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 -> Apache View previous topic :: View next topic
Reply to topic   Topic: php crashing Apache 2.2.3
Author
King Rat



Joined: 07 Dec 2006
Posts: 2

PostPosted: Fri 08 Dec '06 1:38    Post subject: php crashing Apache 2.2.3 Reply with quote

Hello, all. I've a bit of a problem.

I have Apache/php/MySQL installed on my laptop (WinXP SP2) for learning/testing/development purposes. I had Apache 2.0.55 installed, and php 5.2.0, and I hadn't noticed any problems. Then I tried to install phpbb3 beta 4, causing Apache to crash in mid-install with the error:

Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience.

Clicking on the hypertext to get error report data gave this info:

Error Signature:
szAppName: httpd.exe
szAppVer: 2.2.3.0
SZModName: php_operator.dll
szModVer: 5.2.0.0
offset: 00007bf0

Eh, well the AppVer was for 2.0.55, but everything else was the same. So I thought I'd upgrade to the latest Apache, but that didn't solve the issue. (That's when I got the data above, with the 2.2.3.0 AppVer.) So I started experimenting, and phpbb2 installs fine, but textpattern doesn't, although I had it installed fine earlier. I think my previous, successful install of textpattern was under an earlier version of php, but I don't remember for sure.

I got all versions of php from php.net and all versions of Apache from ASF, and always used the MSI binaries.

It appears that if the php code doesn't require the use of php_operator.dll then everything's fine; but if it does, then Apache crashes.

So, after looking around a bit, I've seen stuff that indicates the latest versions of php and Apache don't always play well with each other. I'm no web server admin--I just learned enough to really get everything up and running so I could do some hobbyist site development. Is there any fix to get it all happy, or do I need to downgrade (and if so, what versions do I need to downgrade to)?

Thanks for all your help.
Back to top
pnllan



Joined: 05 Dec 2005
Posts: 221

PostPosted: Fri 08 Dec '06 8:10    Post subject: Reply with quote

Is your PHP set to run as an Apache module (SAPI) or as an executable (CGI)?

Either way, please post what you have in your httpd.conf - Only the lines related to PHP please.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 08 Dec '06 10:13    Post subject: Reply with quote

Hello.

php_operator.dll is an pecl extension for PHP. If you don't need that. You should comment that out in your php.ini

99,9% of all developers and users I know don't need that php_operator.dll extension.
Back to top
King Rat



Joined: 07 Dec 2006
Posts: 2

PostPosted: Sat 09 Dec '06 1:36    Post subject: Reply with quote

James Blond wrote:
php_operator.dll is an pecl extension for PHP. If you don't need that. You should comment that out in your php.ini

99,9% of all developers and users I know don't need that php_operator.dll extension.

That seemed to be the answer. Thanks!

pnllan wrote:
Is your PHP set to run as an Apache module (SAPI) or as an executable (CGI)?

Either way, please post what you have in your httpd.conf - Only the lines related to PHP please.

It's running as a module. Here's the php-relevant bits of httpd.conf:

Code:
#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

...but commenting out php_operator.dll in php.ini seems to have worked. Thanks for taking an interest, though Smile
Back to top


Reply to topic   Topic: php crashing Apache 2.2.3 View previous topic :: View next topic
Post new topic   Forum Index -> Apache