rasodu / DLEMP

0 stars 0 forks source link

Set max execution time for the scripts #62

Closed rasodu closed 7 years ago

rasodu commented 7 years ago

http://stackoverflow.com/questions/5874950/set-max-execution-time-in-php-cli http://php.net/manual/en/info.configuration.php#ini.max-execution-time

During development we may be debugging application using xDebug. This would require you to have longer execution time.

NGINX phpfpm cli
Production 10 minutes 1 minutes Unlimited
Development 10 minutes 10 minute Unlimited
//Optionally if you want to increase execution time for a single script, then you may always use
set_time_limit(<time-in-seconds>)
// or
ini_set('max_execution_time', <time-in-seconds>)
rasodu commented 7 years ago

Nginx still timeout after 1 minute for php script. This value should be increased to 10 minutes. http://serverfault.com/questions/178671/nginx-php-fpm-504-gateway-time-out-error-with-almost-zero-load-on-a-test-se