How to prevent process timeout

Post Reply
User avatar
isscbta
Posts: 61
Joined: Mon Jul 19, 2021 1:41 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:

Code: Select all

mcedit /etc/apache2/apache2.conf
    Timeout 86400
    ProxyTimeout 86400
systemctl restart apache2
NGINX:

Code: Select all

mcedit /etc/nginx/nginx.conf
    proxy_connect_timeout   86400;
    proxy_send_timeout  86400;
    proxy_read_timeout  86400;
systemctl restart nginx
MariaDB:

Code: Select all

mcedit /etc/mysql/mariadb.cnf
    wait_timeout=86400
    interactive_timeout=86400
systemctl restart mysql
PHP:

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

Tags:
Post Reply