Consultor Eletrônico



Kbase 20842: How to Change CGI Timeout Setting for IIS 4.0 & 5.0 and 6.0?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/24/2008
Status: Verified

GOAL:

How to change the CGI timeout value within IIS

GOAL:

How to change the CGI timeout value for IIS 4.0 & IIS 5.0 and IIS 6.0?

FACT(s) (Environment):

Windows NT 32 Intel/Windows 2000
Windows 2003
IIS 6.0
IIS 4.0
IIS 5.0

FIX:

The timeout value is the amount of time a CGI script is given to execute. CGI applications inherit the timeout setting for the entire Web site. You can change the setting for the entire Web site or for an isolated application. The procedure to set the timeout value is as follows (taken from the Microsoft Web site):


PROCEDURE for Windows NT 4.0: Pertaining to IIS 4.0

1. In the Internet Information Services snap-in
2. Select the computer icon and open its property sheets.
3. Under Master Properties, select WWW Service, and then click the Edit button.
4. Click the Home Directory tab.
5. Click the Configuration button.
6. Click the Process Options tab and then type the timeout period in the CGI Script Timeout box.


PROCEDURE for Windows 2000: Pertaining to IIS 5.x.

Go to http://www.actinic.co.uk/hosting/docs/IIS5_CGI_Timeout_Setup.pdf or http://www.microsoft.com for more information if the steps below are out of date. Please note that some versions of IIS 5.0 may not allow you to change the CGI Timeout.

1. Open the IIS MMC and expand the pane view of the server structure.
2. Right click on the server and select Properties:
3. The * server_name Properties box appears, click on the Edit? button:
4. The WWW Service Master Properties for server_name appears:
5. Select the Home Directory tab:
6. Click on the Configuration? button (on the lower right), and the Application Configuration box appears:
7. Select the Process Options tab:
8. Under this tab, enter CGI script timeout value ? in seconds. The default is 300 seconds, adjust to 900 seconds


PROCEDURE for Windows 2003: Pertaining to IIS 6.0

For windows 2003 / IIS 6.0, the CGI timeout has to be adjusted by editing metabase. This can be done by downloading and installing the the IIS 6.0 Resource Kit. [Please note the instructions below have been provided by Microsoft. If the steps are out of date, please go to the other referenced links (within this article) or go directly to http://www.microsoft.com for further information.]


1. The IIS 6.0 Resource Kit is available for download by using below Microsoft link:
http://download.microsoft.com/download/7/8/2/782c25d3-0f90-4619-ba36-f0d8f351d398/iis60rkt.exe


2. Once installed, open the IIS Resource Menu
3. Choose Metabase Explorer menu and icon
4. There will be two keys listed there;
LM
Schema
5. Select "Schema"
6. Select "Properties", there will be three key listed there;
Defaults
Names
Types
7. Select "Defaults"
8. There you will see "CGITimeout" under the column name, datatype "DWORD"
9. The default is set to 900

If needed, also modify the following:
10. Select "LM" (from root node)
11. Select "W3SVC"
12. This will also contain a "CGITimeout" variable
13: The default is set to 300