Helpful Information
 
 
Category: IIS
CGI TImeout with PHP and IIS 5.1

I have installed PHP 4.3.3 with IIS 5.1 and configured IIS 5.1 so that when a .php file is called it runs php.exe. When I call a .php file in the browser an instance of php.exe can be seen triggered in the Task Manager process window. The script never finishes and I end up with a timeout message.

"CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process"

The script I am trying is just <?php phpinfo();?>

I did wonder if the issue is a permissions one. php.exe seems to be running as IUSR_<my pc name>

I have modified the permissions on the folders that contain both php.exe and the .php scripts. But this has made no difference


Any ideas ?


Thanks


Justin

Fixed !!!


Found out from another forum that you need to map .php files in IIS to php.exe %s %S


not sure what %s %S is but it now works

You can also change the timeout by the following:

Click Start -> Settings -> Control Panel -> Administrative tools -> Internet Information services

Right click on the 'Web Sites' folder, and click properties.

Under the Home Directories Tab, click 'Configuration...' at the bottom right.

Go to the 'Process Options' tab, and change the 'CGI Script Timeout' to a larger value

The issue is related how IIS uses CGI Timeout value for existing application. Even if the Timeout value is changed it will not influence existing application and it is impossible to change it for the application from MMC. The only way is to change the value globally and to create the application again (virtual directory) or to use MateBaseEditor from MS and restart IIS.










privacy (GDPR)