How to Extend the Request/Connection Timeout on Apache-FastCGI-PHP application using .htaccess -


i trying extend connection/request timeout @ our allotted server space.

the reason trying is, operations in application takes more 120 seconds, server not waiting operation complete. returns 500 internal server error, after 120 seconds.

to test placed below script on server:

<?php sleep(119); echo "test"; ?> 

it return test, browser after 119 seconds.

but when place below script:

<?php sleep(121); echo "test"; ?> 

it return 500 internal server error after 120 seconds

we have set max_execution_time=360 in php.ini, problem still exists.

we have apache installed fastcgi.

i trying extend 360 seconds, using .htaccess, because way can in shared hosting.

any solutions or suggestions ?, in advance.

fastcgi different beast; using set_time_limit not solve problem. i'm not sure can .htaccess, normal setting you're looking called ipccommtimeout; can try change in .htaccess, i'm not sure if it's allowed or not.

see directives on apache fcgid page; if you're using old version, might need try setting fcgidiotimeout instead.

i suggest 120 seconds far long user wait request on web server; if things take long run, try running script command line php cli instead.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -