Previous Next

Thread: IIS 6.0 and PHP ISAPI Problem

Last post 04-21-2008 4:45 PM by brashquido. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 04-18-2008, 10:08 AM

    • Uday31in
    • Top 500 Contributor
    • Joined on 08-03-2007, 10:15 PM
    • Posts 9

    IIS 6.0 and PHP ISAPI Problem

    Dear,

    I am running PHP 5.4.2 on IIS 6.0 as PHP ISAPI and script is timing out.

     
    I have traced the request and found following trace log:

     

    --------------------------

    IISGeneral: GENERAL_GET_URL_METADATA - IIS gets URL metadata
    PhysicalPath: D:\web\support\
    AccessPerms: Read+Write+Exec+Source+Script
    ContextIDSeq: 32
    Timestamp: 12:18:53.924.757800

    IISISAPI: ISAPI_END - IIS ends processing an ISAPI Request
    ContextIDSeq: 32
    Timestamp: 12:22:25.833.720200

    IISGeneral: GENERAL_REQUEST_END - IIS ends processing a request
    HttpStatus: 500
    HttpSubStatus: 0
    BytesSent: 496
    BytesReceived: 520
    ContextIDSeq: 32
    Timestamp: 12:22:25.833.720200

    Total time: 212000 msecs 

    ---------------------------

    As I can see, suddenly IIS ends processing after running 4 minutes, In terms of PHP max execution time is set to 600 seconds which sufficient enough.

    I just want to find the problem whether is it with IIS or PHP?

     
    Uday
     

    Tags:
  • 04-21-2008, 2:13 PM In reply to

    Re: IIS 6.0 and PHP ISAPI Problem

    I usually find this is PHP, or at least a PHP quirk when used with IIS. What extensions do you have loaded? What does your script do? Have you configured your php log in php.ini? Have you tried using Procmon to trace back any permission based issues? 

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 04-21-2008, 2:20 PM In reply to

    • Uday31in
    • Top 500 Contributor
    • Joined on 08-03-2007, 10:15 PM
    • Posts 9

    Re: IIS 6.0 and PHP ISAPI Problem

    Thanks for your response.

     I tried with procmon but nothing unusual. This script works perfectly fine in normal circumstances. This script downloads an email from remote mail server via POP3. If the message is larger in size e.g. 3 or 4 MB it times out. I believe, script is running little longer if this is the case and IIS or PHP is terminating the script. I am not sure about how to start troubleshooting.

     Uday

     

  • 04-21-2008, 2:57 PM In reply to

    Re: IIS 6.0 and PHP ISAPI Problem

    If the problem only occurs when downloading large files, then I think the only real option you have is to increase the script timeout. By the sounds of it there really isn't a issue with PHP or IIS, it sounds like your script just needs time to execute fully which is not strictly an issue with your PHP/IIS environment.


     

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 04-21-2008, 3:04 PM In reply to

    • Uday31in
    • Top 500 Contributor
    • Joined on 08-03-2007, 10:15 PM
    • Posts 9

    Re: IIS 6.0 and PHP ISAPI Problem

    Any indication on which value should I increase? Form IIS Schema it seems that script time out values are applicable to ASP only.

     I have modified values related to PHP hence I dont think that PHP might be a problem.

     
    Thanks for your response.

    Uday
     

  • 04-21-2008, 4:45 PM In reply to

    Re: IIS 6.0 and PHP ISAPI Problem

     For that you'll need to set the script timeout value in php.ini and restart IIS. Ideally you do not want to set your timeout setting too high as it can lead to denial of service, so you might want to look at setting the extended php timeout setting setting per directory PHP configuration values in the registry.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
Page 1 of 1 (6 items)
Page view counter