Partner and Community Forums
PHP process hangs
Last post Mar 25, 2014 04:22 PM by DropPhone
Mar 24, 2014 01:02 PM|jacmramalho|LINK
I have seen this problem elsewhere lots of time but could not find an answer.
I have a IIS 7.5 webserver with PHP 5.3.28 and FastCGI with almost 200 sites.
From time to time, one php site wull hang without an error message. Eventualy the apppool wil recycle.
No error is displayed. My solution is to kill the web process related to the site.
Can anyone give some help resolving this issue? I have read that request failed trace can log fast cgi execution. How can i enable it?
Mar 24, 2014 01:41 PM|DropPhone|LINK
Create a Tracing Rule for FREB:
FREB general topic:
...or just search <insert your favorite search engine here> for "IIS Enable FREB" for lots of other places that describe, step-by-step how to turn on FREB & where the logs go.
Mar 25, 2014 04:59 AM|jacmramalho|LINK
Thank you for your reply.
I know how to enable FREB. What i don't know is how to log php fastcgi errors or warnings.
By enabling error reporting in php.ini in conjuction with FREB i saw elsewhere that we can monitor what is happening inside the fastcgi process but i haven't maneged to see this in FREB log.
Mar 25, 2014 04:22 PM|DropPhone|LINK
I'm not sure there's anything that shows up in the FREB log for that, other than the return code from the fastcgi handler.
If you've enabled error logging in the php.ini, I believe the errors show up in the Windows Application Event Log (eventvwr). From there you have to correlate the timestamps of the eventlog events with the timestamps in the FREB logs. However, I've never
done this, so there may be some magic setting for the fastcgi component to have it stuff more info into the FREB trace....