PHP process hangsRSS

3 replies

Last post Mar 25, 2014 04:22 PM by DropPhone

  • PHP process hangs

    Mar 24, 2014 01:02 PM|jacmramalho|LINK

    Hello,

    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?

    Regrds,

    José Ramalho 

  • DropPhone DropPhone

    359 Posts

    Microsoft

    Moderator

    Re: PHP process hangs

    Mar 24, 2014 01:41 PM|DropPhone|LINK

    Create a Tracing Rule for FREB: http://technet.microsoft.com/en-us/library/cc725948(v=ws.10).aspx
    Enable FREB: http://technet.microsoft.com/en-us/library/cc725786(v=ws.10).aspx
    FREB general topic: http://technet.microsoft.com/en-us/library/cc731798(v=ws.10).aspx

    ...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.

    Thx!

        --E.

  • Re: PHP process hangs

    Mar 25, 2014 04:59 AM|jacmramalho|LINK

    Hello,

    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.

    Regards,

    Jose Ramalho

  • DropPhone DropPhone

    359 Posts

    Microsoft

    Moderator

    Re: PHP process hangs

    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....

    Thx!

        --E.