Unable to switch php pandler: Error: phpinimng failed: invoke-rc.d: initscript plesk-php56-fpm, action "status" failed

Created:

2016-11-16 13:19:35 UTC

Modified:

2017-08-16 16:30:16 UTC

2

Was this article helpful?


Have more questions?

Anfrage einreichen

Unable to switch php pandler: Error: phpinimng failed: invoke-rc.d: initscript plesk-php56-fpm, action "status" failed

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. Unable to switch php handler for subscription following error appears:

    Error: phpinimng failed: invoke-rc.d: initscript plesk-php56-fpm, action "status" failed. invoke-rc.d: initscript plesk-php56-fpm, action "status" failed. Service plesk-php56-fpm is down after attempt to start it 
    
  2. plesk-php56-fpm is not able to start, following error can be found in /var/log/plesk-php56-fpm/error.log :

    [17-Oct-2015 17:56:37] ERROR: [pool subdomain.example.com] the prefix '/var/www/vhosts/system/subdomain.example.com' does not exist or is not a directory
    [17-Oct-2015 17:56:37] ERROR: failed to post process the configuration
    [17-Oct-2015 17:56:37] ERROR: FPM initialization failed
    

Cause

  • Domain was deleted from Plesk, but configuration file was not removed.
  • Directory /var/www/vhosts/system/subdomain.example.com was deleted from the server.

    Resolution

    1. If domain subdomain.example.com doesn't exist on the server then remove its configuration file and restart plesk-php56-fpm :

      # rm /opt/plesk/php/5.6/etc/php-fpm.d/subdomain.example.com.conf
      # /etc/init.d/plesk-php56-fpm restart
      * Restarting PHP FastCGI Process Managerphp-fpm   [ OK ]
      
    2. If domain subdomain.example.com exist on the server then recreate folder /var/www/vhosts/system/subdomain.example.com , start plesk-php56-fpm and reconfigure domain:

      # mkdir -p /var/www/vhosts/system/subdomain.example.com
      # /etc/init.d/plesk-php56-fpm restart
      * Restarting PHP FastCGI Process Manager php-fpm   [ OK ]
      # /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain subdomain.example.com
      
Haben Sie Fragen? Anfrage einreichen
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.