(where 7.x is 7.3 for example)
After you make the changes, you should restart php-fpm (do it in SSH, as root):
Code: Select all
sudo systemctl restart php7.x-fpm
- max_execution_time (also consider: request_terminate_timeout)
These variables you should change there.
Also restart php-fpm after those changes.
If you need different default values for newly created domains, edit /usr/local/vesta/data/templates/web/apache2/PHP-FPM-7x.sh files.
- Every time when you increase or decrease max_execution_time, you should also increase/decrease request_terminate_timeout.
Variable request_terminate_timeout is given in real seconds (default value is 90s), and max_execution_time is not.
Variable max_execution_time is measured in CPU time spent on the current process. More about this could be found here: https://stackoverflow.com/questions/100 ... 0#10027320
What is important for us is that max_execution_time could last a lot longer than 30 seconds if some process got stuck with IO waiting. That's why request_terminate_timeout is important and would prevent a potential indefinite IO waiting.