How to restart php-fpm using SSH ?

awci

Registered
Sep 15, 2013
2
0
1
cPanel Access Level
Root Administrator
Hi I tried to restart fpm pn WHM and also on SSH but it's not possible to restart apache_php_fpm and spamd can any one help me ?
When I try to send command
Code:
/scripts/restartsrv_apache_php_fpm
Service Status

apache_php_fpm restarted successfully.

/scripts/restartsrv_cpanel_php_fpm
Waiting for “cpanel_php_fpm” to restart gracefully …waiting for “cpanel_php_fpm” to initialize ………finished.

Service Status
    cpanel_php_fpm (php-fpm: master process (/usr/local/cpanel/etc/php-fpm.conf)) is running as root with PID 11311 (pidfile check method).

cpanel_php_fpm restarted successfully.
but still down
Code:
/scripts/restartsrv_spamd
Waiting for “spamd” to start ……warn [restartsrv_spamd] The 'spamd' service's PID file '/var/run/spamd.pid' did not appear after 10 seconds.

…info [restartsrv_spamd] The service 'spamd' failed to restart. Trying '/usr/local/cpanel/3rdparty/perl/524/bin/spamd'.
…failed.

Cpanel::Exception::Services::StartError
Service Error
    (XID tyydr7) The “spamd” service failed to start.

Startup Log
    child process [11560] exited or timed out without signaling production of a PID file: exit 255 at /usr/local/cpanel/3rdparty/perl/524/bin/spamd line 3093.

Log Messages
    May 13 19:06:00 tab spamd[11558]: child process [11560] exited or timed out without signaling production of a PID file: exit 255 at /usr/local/cpanel/3rdparty/perl/524/bin/spamd line 3093.
    May 13 19:05:59 tab spamd[11560]: spamd: cannot create /tmp/spamd-11560-init: No space left on device at /usr/local/cpanel/3rdparty/perl/524/bin/spamd line 3152.
    May 13 19:05:59 tab spamd[11558]: logger: removing stderr method
    May 13 19:05:33 tab spamd[11534]: spamd: cannot create /tmp/spamd-11534-init: No space left on device at /usr/local/cpanel/3rdparty/perl/524/bin/spamd line 3152.

spamd has failed. Contact your system administrator if the service does not automagically recover.

Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda2      309251080 209249168  84286124  72% /
tmpfs            6098340         0   6098340   0% /dev/shm
/dev/sda1         247919    112756    122363  48% /boot
/usr/tmpDSK      4128448    195840   3722896   5% /tmp
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
May 13 19:05:33 tab spamd[11534]: spamd: cannot create /tmp/spamd-11534-init: No space left on device at /usr/local/cpanel/3rdparty/perl/524/bin/spamd line 3152.
Hello,

Could you verify if any of your partitions are at 100% inode capacity? You can check this with the following command:

Code:
df -i
Thank you.