Linux/PHP/NGINX: Increase timeout

PHOTO EMBED

Mon Aug 29 2022 19:10:43 GMT+0000 (Coordinated Universal Time)

Saved by @marcopinero #bash #sql

#Increment timeout and max_children:

/etc/php/7.0/fpm/php.ini  =>   default_socket_timeout = 60000
/etc/php/7.0/fpm/php.ini  =>   pm.max_children = 20
/etc/php/7.0/fpm/pool.d/www.conf  =>   request_terminate_timeout = 60000

#Increment timeout on /etc/nginx/nginx.conf:
keepalive_timeout 65000;

#After Restart php-fpm and nginx:

sudo service php7.0-fpm restart
sudo service nginx restart
content_copyCOPY