PHP-FPM reloading issues on CentOS 7

Bolk

New member
Joined
Feb 11, 2011
Messages
4
Hi,

We have an issue with PHP-FPM. I'm not quite sure if this is a DA or a CB issue to be honest. Our current setup is:

- Apache/Nginx
- CB 2.0 RC 7
- PHP-FPM 5.6
- PHP-FPM 5.4
- Directadmin 1.463

For some reason, out of random or when a user is added/modified the PHP-FPM reload doesn't go as planned:

Code:
[07-Jan-2015 21:30:02] NOTICE: systemd monitor interval set to 10000ms
[08-Jan-2015 00:29:02] NOTICE: Reloading in progress ...
[08-Jan-2015 00:29:02] NOTICE: reloading: execvp("/usr/local/php56/sbin/php-fpm56", {"/usr/local/php56/sbin/php-fpm56", "--nodaemonize"})
[08-Jan-2015 00:29:02] NOTICE: using inherited socket fd=6, "/usr/local/php56/sockets/webapps.sock"
[08-Jan-2015 00:29:02] NOTICE: using inherited socket fd=6, "/usr/local/php56/sockets/webapps.sock"
<snip>
[08-Jan-2015 00:29:02] NOTICE: using inherited socket fd=7, "/usr/local/php56/sockets/a24.sock"
[08-Jan-2015 00:29:02] NOTICE: using inherited socket fd=7, "/usr/local/php56/sockets/a24.sock"
[08-Jan-2015 00:29:02] NOTICE: fpm is running, pid 25038
[08-Jan-2015 00:29:02] NOTICE: ready to handle connections
[08-Jan-2015 00:29:02] NOTICE: systemd monitor interval set to 10000ms
[08-Jan-2015 00:29:02] NOTICE: Reloading in progress ...
[08-Jan-2015 09:24:25] NOTICE: Terminating ...
[08-Jan-2015 09:24:25] NOTICE: exiting, bye-bye!
[08-Jan-2015 09:24:25] NOTICE: fpm is running, pid 29164
[08-Jan-2015 09:24:25] NOTICE: ready to handle connections
[08-Jan-2015 09:24:25] NOTICE: systemd monitor interval set to 10000ms

As you can see, at 00:29:02 a reload happens and then we only get gateway errors until the process is manually restarted. I saw a bugfix: http://www.directadmin.com/features.php?id=1673 but this doesn't fix the issue we have.

Any advice would be greatly appreciated! Thanks :)
 
Hello,

Thanks for the report.
If DA is issuing the reload, but that is breaking php-fpm, then we'd want to figure out why the reload is killing php-fpm.

DA calls the following:
Code:
/usr/bin/systemctl reload php-fpm56
So, try running that command to see what it does.
If it's down or isn't working, try:
Code:
/usr/bin/systemctl status php-fpm56
as php-fpm56 may have output some useful information to the managing service process.

John
 
Back
Top