How to prevent services timeout
Posted: Thu Nov 17, 2022 11:54 am
It is possible for some processes, such as import processes, to be interpreted because they have reached their maximum execution time. In order to prevent this from happening, we will change the default timeout values in the following files:
Apache:
NGINX:
MariaDB:
PHP:
Apache:
Code: Select all
mcedit /etc/apache2/apache2.conf
Timeout 86400
ProxyTimeout 86400
systemctl restart apache2
Code: Select all
mcedit /etc/nginx/nginx.conf
proxy_connect_timeout 86400;
proxy_send_timeout 86400;
proxy_read_timeout 86400;
systemctl restart nginx
Code: Select all
mcedit /etc/mysql/mariadb.cnf
wait_timeout=86400
interactive_timeout=86400
systemctl restart mysql
Code: Select all
mcedit /etc/php/7.4/fpm/pool.d/domain.com.conf
request_terminate_timeout = 86400s
php_admin_value[max_execution_time] = 86400
systemctl restart php7.4-fpm