PHP-FPM reload / restart problems
short description
Default PHP version: 5.6 Additional PHP version: 7.0
Sometimes when switching PHP version for a website, the site isn't reachable after that. I need to manual restart PHP-FPM in the specific version, where the site should run. By inspecting the code, i also realized that the given init scripts /etc/init.d/php5-fpm
or /etc/init.d/php-7-fpm
are getting translated into service php5-fpm reload
.
The log files are 'clean' and don't show any problems. The main problem may be the 'reload' as it may not reload the config itself. Restart would be better as a reload may not be that gracefull
correct behaviour
Switching shouldn't cause a broken connection for PHP-FPM socket.
environment
Server OS: debian Server OS version: jessio 8.7 ISPConfig version: 3.1.3
references
Related bug: https://bugs.php.net/bug.php?id=60961
solution / improvements
1.) Really keep the the init script and don't manipulate it, so it's users choice if they enter '/etc/init.d/...' or 'service ..."
2.a) Make another option, if changes should call a reload or restart
2.b) If you really need the init script from 1.) make additional fields for command of reload/restart that should be used.
I will try to provide a solution merge, but as time is really rare right now, i'll can't promise.