CGI TImeout on IIS6 running PHP - where can this be altered?

Posted on 2004-11-17
Last Modified: 2010-08-05
I'm running a W2k3 web server with IIS6 and PHP but all my php scripts time out after 5 minutes.
I've tried changing the CGI timeout (in the application pools and within the configuration of the web sites) and they are all set to 600 seconds but still no joy - it times out after 5 minutes. Any suggestions?
Question by:rochej
    LVL 34

    Expert Comment

    Uh, how did you change the CGI Script timeout?  That value can't be changed from the IIS Management Console.....

    Try the following:

    Open a command prompt and navigate to c:\inetpub\adminscripts
    Type the following:  cscript.exe adplus.vbs set w3svc/cgitimeout 600

    This will set your CGI Script timeout to 600 seconds (default is 300).

    Dave Dietz

    Author Comment

    Thanks - but I don't seem to have adplus.vbs in that directory. Is this installed with an add on pack or something ?
    LVL 34

    Accepted Solution

    Oops, my mistake.

    ADSUtil.vbs, not ADPlus.vbs.....

    cscript.exe adsutil.vbs set w3svc/cgitimeout 600

    ADSUtil is for editing the metabase
    ADPlus is used for attaching debuggers to processes running on the system and comes as part of the Debuggind Tools for Windows package

    Dave Dietz

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
    What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now