Sometimes your script acts funny or is silent. Example, it takes forever to do something that shouldn’t take that long. Sometimes it’s accompanied with an error in nginx logs:
..upstream timed out (110: Connection timed out) while reading response header from upstream..
or
****
Usually it has to do with php timing out. To change:
Php
- File /etc/php5/fpm/pool.d/www.conf
request_terminate_timeout = 300s
- File /etc/php5/fpm/php.ini
max_execution_time = 300 (that's in seconds)
Nginx
location ~ .php$ {
...
fastcgi_read_timeout 300s
...
Leave a Reply