Reload PHP-FPM only once with `/usr/local/psa/bin/php_settings -u` (Plesk 12.5)
To update custom PHP-FPM pool settings, the command /usr/local/psa/bin/php_settings -u
should be used to include any new custom files from /var/www/vhosts/system/*/conf/php.ini
However, this command seems to reload PHP-FPM for every subscription, which will cause unnecessary downtime on servers with a larger number of subscriptions.
This behavior was fixed only for the newest version of Plesk Onyx (17.5).
Unfortunately it was not fixed for Plesk 12.5 yet, which is still supported by Plesk.
This issue could expectedly be solved quite easily, by modifying the script in /usr/local/psa/bin/php_settings
to only perform a single PHP-FPM reload only once, at the end of the script.
Could this command be modified for Plesk 12.5 so that PHP-FPM will reload only once, with minimal downtime?
PS our request on the forum ultimately did not receive a response, see https://talk.plesk.com/threads/usr-local-psa-bin-php_settings-u-reloads-php-fpm-for-every-subscription.342481/
Let’s discuss it on the forum.
— rk