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.
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.
Ibran Siagia...
17 Posts
Timeout PHP-IIS
May 13, 2011 03:59 AM|LINK
Hi guys,
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
PHP.ini
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
FASTCGI Settings
Activity Timeout = 600
Idle Timeout = 700
Request timeout = 600
CGI time-out = 01:00:00
Please help me and thank you so much.
HostingASPNe...
734 Posts
Re: Timeout PHP-IIS
May 13, 2011 05:01 AM|LINK
Hello,
You should also check the application pool timeout.
Regards
Free ASP.NET Examples and source code.
Ibran Siagia...
17 Posts
Re: Timeout PHP-IIS
May 13, 2011 06:52 AM|LINK
Hi,
I try to increase the application pool time-out from the default value = 20 to 30 minutes, still the problem's not solved.
Another hint?
Thanks
vijaybhaskar...
94 Posts
Re: Timeout PHP-IIS
May 13, 2011 07:51 AM|LINK
vijaybhaskarReddy
Ibran Siagia...
17 Posts
Re: Timeout PHP-IIS
May 13, 2011 08:32 AM|LINK
Hi Vijay,
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"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<httpRedirect enabled="false" destination="https://tower.me.com" exactDestination="false" childOnly="false" />
</system.webServer>
</configuration>
Leo Tang - M...
4161 Posts
Microsoft
Re: Timeout PHP-IIS
May 18, 2011 07:24 AM|LINK
Hi,
It seems you already configured Timeout settings properly. Could you please post the detailed error information here?
Thanks.
Feedback to us
Develop and promote your apps in Windows Store
Ibran Siagia...
17 Posts
Re: Timeout PHP-IIS
May 25, 2011 09:29 AM|LINK
Hi Leo,
there's no error report shown up on the browser, or should I post the php-errors.log instead?
Thank you.
HCamper
8048 Posts
Re: Timeout PHP-IIS
May 25, 2011 12:28 PM|LINK
Hello,
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 http://learn.iis.net/page.aspx/724/install-and-configure-php/ .
Cheers :)
Martin
Community Member Award 2011
Ibran Siagia...
17 Posts
Re: Timeout PHP-IIS
Jun 09, 2011 04:35 AM|LINK
Hi Martin,
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?
Thank you.
HCamper
8048 Posts
Re: Timeout PHP-IIS
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 http://learn.iis.net/page.aspx/745/enable-per-site-php-configuration-on-iis-7-and-iis-60/ .
Martin :)
Community Member Award 2011