The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to restart php-fpm using SSH ?

Discussion in 'General Discussion' started by awci, May 13, 2017.

Tags:
  1. awci

    awci Registered

    Joined:
    Sep 15, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    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
    
    
     
    #1 awci, May 13, 2017
    Last edited by a moderator: May 13, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,296
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page