IIS + PHP -- Worker Process alert & w3wp.exe crash?

IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 27.11.2007 22:35:26 von turnstyle

Hi all,

I'm trying to set up my first Vista/IIS7 box with PHP5 -- in IIS7 I
mapped the current php5isapi.dll.

I've noticed that if I simply open a PHP page (it works), when the IIS
application pool later recycles (either timed or forced), I get an
"IIS Worker Process has stopped working" alert, and a "Faulting
application w3wp.exe" event in the Event Viewer.

Is there a way to fix that? (Other folks seem to have the same
problem, but I can't seem to find a solution.)

Is *anybody* here running IIS7/PHP without this problem? Alterntively,
do others here have the same problem?

Many thanks, -Scott

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 27.11.2007 23:18:25 von Bucky Kaufman

"turnstyle" wrote in message
news:bd39ca14-f1af-43ae-b569-89c32a4e81ab@l1g2000hsa.googleg roups.com...
> Hi all,
>
> I'm trying to set up my first Vista/IIS7 box with PHP5 -- in IIS7 I
> mapped the current php5isapi.dll.
>
> I've noticed that if I simply open a PHP page (it works), when the IIS
> application pool later recycles (either timed or forced), I get an
> "IIS Worker Process has stopped working" alert, and a "Faulting
> application w3wp.exe" event in the Event Viewer.
>
> Is there a way to fix that? (Other folks seem to have the same
> problem, but I can't seem to find a solution.)
>
> Is *anybody* here running IIS7/PHP without this problem? Alterntively,
> do others here have the same problem?

This issue actually goes all the way back to the first days of IIS and
ActiveX.
PHPxISAPI.dll is an ActiveX control - with all the pitfalls thereof.
Any changes to your configuration at all, and you have to shut down your IIS
service and restart it.
Worse, sometimes those changes can require you to have to reboot the OS
itself.

This kind of badness is one reason why the folks at PHP.net do not recommend
Windows for a production environment.

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 28.11.2007 01:45:38 von turnstyle

Does PHP5 simply not work right on IIS7? (that would be news to me!)

Does *anybody* have PHP working on IIS7 without these "IIS Worker
Process has stopped working" alerts and the "Faulting application
w3wp.exe" events in the Event Viewer?

Thanks! -Scott

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 28.11.2007 02:15:57 von Jerry Stuckle

turnstyle wrote:
> Does PHP5 simply not work right on IIS7? (that would be news to me!)
>
> Does *anybody* have PHP working on IIS7 without these "IIS Worker
> Process has stopped working" alerts and the "Faulting application
> w3wp.exe" events in the Event Viewer?
>
> Thanks! -Scott
>

Nope, I never use a MS product until it's been out at least two years.
And not necessarily then.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 28.11.2007 16:35:33 von turnstyle

> Nope, I never use a MS product until it's been out at least two years.
> And not necessarily then.

Thanks, though I'm actully looking to find somebody that *is* running
PHP on IIS7 -- I'll try posting that question as a fresh thread.

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 28.11.2007 19:38:59 von Jerry Stuckle

turnstyle wrote:
>> Nope, I never use a MS product until it's been out at least two years.
>> And not necessarily then.
>
> Thanks, though I'm actully looking to find somebody that *is* running
> PHP on IIS7 -- I'll try posting that question as a fresh thread.
>

The point is - I don't know of anyone who's even trying it. And from
your searching, it looks like a lot of others have had problems, also.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 28.11.2007 20:07:35 von Bucky Kaufman

"Jerry Stuckle" wrote in message
news:_pmdneMZVaJxKNDanZ2dnUVZ_ubinZ2d@comcast.com...
> turnstyle wrote:
>>> Nope, I never use a MS product until it's been out at least two years.
>>> And not necessarily then.
>>
>> Thanks, though I'm actully looking to find somebody that *is* running
>> PHP on IIS7 -- I'll try posting that question as a fresh thread.
>
> The point is - I don't know of anyone who's even trying it. And from your
> searching, it looks like a lot of others have had problems, also.

This is why PHP.net does not endorse PHP on a Windows platform for
production environments.
While it's *possible* to get past this problem in a dev environment, through
restarts and reboots, those are not acceptible practices in a production
environment.

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 28.11.2007 20:34:55 von Jerry Stuckle

Sanders Kaufman wrote:
> "Jerry Stuckle" wrote in message
> news:_pmdneMZVaJxKNDanZ2dnUVZ_ubinZ2d@comcast.com...
>> turnstyle wrote:
>>>> Nope, I never use a MS product until it's been out at least two years.
>>>> And not necessarily then.
>>> Thanks, though I'm actully looking to find somebody that *is* running
>>> PHP on IIS7 -- I'll try posting that question as a fresh thread.
>> The point is - I don't know of anyone who's even trying it. And from your
>> searching, it looks like a lot of others have had problems, also.
>
> This is why PHP.net does not endorse PHP on a Windows platform for
> production environments.
> While it's *possible* to get past this problem in a dev environment, through
> restarts and reboots, those are not acceptible practices in a production
> environment.
>
>
>
>

Recommend or not, I've got it working fine on IIS 5 and 6 - the latter
being a production server (still has .ASP code so we can't go to Apache).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 28.11.2007 20:42:37 von Bucky Kaufman

"Jerry Stuckle" wrote in message
news:xI2dnZhIv5KXXtDanZ2dnUVZ_q3inZ2d@comcast.com...
> Sanders Kaufman wrote:

>> While it's *possible* to get past this problem in a dev environment,
>> through restarts and reboots, those are not acceptible practices in a
>> production environment.
>
> Recommend or not, I've got it working fine on IIS 5 and 6 - the latter
> being a production server (still has .ASP code so we can't go to Apache).

That's the funniest part of Microsoft's last 10 years.
The old stuff works MUCH better than the .NET crap.

I evangelized the crap out of ActiveX, much to my shame.
But I can't even *pretend* to advocate .NET.
It works bad enough with itself, but is downright *horrible* with
third-party stuff.

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 28.11.2007 22:59:23 von turnstyle

Thanks Jerry,

It seems this problem dates back to IIS6 (see http://bugs.php.net/36853).

Question: are you running PHP via ISAPI?

(and thanks again)

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 28.11.2007 23:20:26 von Jerry Stuckle

turnstyle wrote:
> Thanks Jerry,
>
> It seems this problem dates back to IIS6 (see http://bugs.php.net/36853).
>
> Question: are you running PHP via ISAPI?
>
> (and thanks again)
>

Yep. But I'm not seeing the problem referenced by the bug.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: IIS + PHP -- Worker Process alert & w3wp.exe crash?

am 29.11.2007 00:14:09 von turnstyle

Hey Jerry & all, I think I found it...

if I open:
IIS Manager > DefautAppPool > Advanced Settings

and change:
Process Model > Identity

from NetworkService to SpecificUser

and enter my credentials in:
Identity SpecificUser Credentials

The problem stops -- do you happen to know what folders/perms I need
to check to use the default NetworkService as Process Model Identity?

Hopefully this info will be of use to somebody! ;)

-Scott