(where X.X is 7.4 for example)
To check what PHP version your site is running, in your SSH run:
Code: Select all
sudo /usr/local/vesta/bin/v-get-php-version-of-domain yourdomain.com
Code: Select all
sudo systemctl restart phpX.X-fpm
Important note:
- pm.max_children
- memory_limit
- max_execution_time (also consider: request_terminate_timeout)
- upload_max_filesize
- post_max_size
- open_basedir
- upload_tmp_dir
- sendmail_path
- mysql.allow_persistent
- safe_mode
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-XX.sh files (where XX is 74 for example).
Additional notes:
- 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.