IIS 5 & IIS 6
Last post May 10, 2012 04:58 AM by Ibran Siagian
May 13, 2011 03:59 AM|LINK
I have a problem with a php application timeout running on IIS. Firstly, I am completely new to both technology, so I'm not really sure which or where configuration and etc, should be fixed regarding to the problem. My problem is that the application suddenly
timeout in random time limit when a form submitted. I've tried increasing some configuration in php.ini, fastcgi settings, changing php temp folder permission, also CGI (timeout value in IIS M.Console), but none seems solve the problem. I am using PHP 5.3.6
nts build vc9 on IIS 7, OS: Winserv 2008.
Here's the configuration I've been changed
max_execution_time = 400
max_input_time = 240 default_socket_timeout = 600
session.cache_limiter = nocache
session.cache_expire = 3600
session.gc_probability = 1
session.gc_divisor = 3600
session.gc_maxlifetime = 3600
output_buffering = 8192
Activity Timeout = 600
Idle Timeout = 700
Request timeout = 600
CGI time-out = 01:00:00
Please help me and thank you so much.
May 13, 2011 05:01 AM|LINK
You should also check the application pool timeout.
May 13, 2011 06:52 AM|LINK
I try to increase the application pool time-out from the default value = 20 to 30 minutes, still the problem's not solved.
May 13, 2011 07:51 AM|LINK
May 13, 2011 08:32 AM|LINK
I can't find a time-out entry on webconfig file. should I add it manually? can you give me an example to do so?
here's my web config:
<?xml version="1.0" encoding="UTF-8"?>
<httpErrors errorMode="Detailed" />
<httpRedirect enabled="false" destination="https://tower.me.com" exactDestination="false" childOnly="false" />
May 18, 2011 07:24 AM|LINK
It seems you already configured Timeout settings properly. Could you please post the detailed error information here?
May 25, 2011 09:29 AM|LINK
there's no error report shown up on the browser, or should I post the php-errors.log instead?
May 25, 2011 12:28 PM|LINK
Yes, Either Check the errors in php_error.log or post the contents of php_error.log.
Change the php.ini to show errors aka Developer Mode change this back to Production Mode after fixing php.
It is very likley the timing problems have nothing to do with time specific configuration.
It is more likey the delay problems are related to other php.ini settings:
A) Incorrect Time / Zone configuration in php.ini.
B) Having missing or incorrect selections for extensions in php.ini.
Please test the php using command line >php -h displays help php -i shows information.
Test the php using >php test.php then check the php at the IIS Server Browse using http:// localhost / test.php.
A guide for php settings from IIS Net library
Jun 09, 2011 04:35 AM|LINK
Thanks for your guidance, I've changed the time/zone configuration same to the server's configuration, also fixing incorrect selections for extensions. Still the problem not solved.
I was using 5.2.14 before, and the problem appeared when I upgrade PHP to 5.3.
Should I try to go back to 5.2.14 version?
or could you give me another hint?
Jun 09, 2011 05:12 AM|LINK
Hi @ Ibran,
Ok. So you fixed some issues. Yes I still have an idea or two.
Run the PHP installation to be at C:\Program Files (x86)\PHP52 and check the proper extensions and other options.
Then make a backup of the current php.ini file then uninstall PHP and run PHP for the install to be at C:\Program Files (x86)\PHP53
and again check the proper extensions and other options.
Then use enable per site PHP configuration