Thursday, 15 April 2010

apache - Script timed out before returning headers with php set_time_limit(0) runs fine by SSH -



apache - Script timed out before returning headers with php set_time_limit(0) runs fine by SSH -

i have script generates study client csv, writes file usesreadfile() output browser.

i'm having issue big study (takes 11 minutes generate, 700kb in size) throwing 500 error. apache says "script timed out before returning headers"

i have tried using set_time_limit(0) in script , setting max_execution_time in php.ini 900 (15 minutes) no avail. have error_log() calls emailing throughout script , study script generated ok, , ini_get('max_execution_time') within script returns 0 (i'm assuming means unlimited). if log in via ssh , run script using php scriptname.php runs fine , outputs csv shell.

could there setting, perhaps within apache, causing timeout issue? know should move script cron perhaps right time issue (isn't clients) i'd resolve timeout issue.

php apache timeout

No comments:

Post a Comment