Article ID: 121844, created on May 31, 2014, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux


When a domain 'domain.tld' with a 'sub' subdomain gets renamed to '', PHP-FPM service fails to start. '/var/log/php5-fpm.log' contains errors:

ERROR: [pool] the prefix '/var/www/vhosts/system/sub.domain.tld' does not exist or is not a directory
ERROR: failed to post process the configuration


This is an internal issue with ID #PPPM-1685, which is planned to be fixed in future product updates.

When domain gets renamed, old configuration file for a subdomain is not removed or renamed, but a new one is being created instead. This causes PHP-FPM to fail.


  1. Download custom fix attached:

    # cd /root/
    # wget
  2. Unpack the archive:

    # tar zxvf /root/patch.tar.gz
  3. Create a backup of /usr/local/psa/admin/plib/Smb/Plesk/Bridge/Domain.php and /usr/local/psa/admin/plib/PHosting/Apache.php files:

    # mv /usr/local/psa/admin/plib/Smb/Plesk/Bridge/Domain.php /usr/local/psa/admin/plib/Smb/Plesk/Bridge/Domain.php.orig
    # mv /usr/local/psa/admin/plib/PHosting/Apache.php /usr/local/psa/admin/plib/PHosting/Apache.php.orig
  4. Place unpacked custom fix files to:

    # cp /root/plib/Smb/Plesk/Bridge/Domain.php /usr/local/psa/admin/plib/Smb/Plesk/Bridge/Domain.php
    # cp /root/plib/PHosting/Apache.php /usr/local/psa/admin/plib/PHosting/Apache.php
  5. Restart php5-fpm service:

    # service php5-fpm restart

If above does not fix the issue, use following workaround (keep custom fix files applied).

  1. Access Plesk database:

    3472 How to access Plesk database?

  2. Find out what domain was renamed recently:

    mysql> select,la.object_id,lc.old_value,lc.new_value from log_actions la LEFT JOIN actions act ON left join log_components lc on where lc.old_value like '%domain.tld%' and in('site_update','domain_update');
    | date                | object_id | old_value | new_value |
    | 2014-05-30 16:39:41 |      1297 |domain.tld | |
  3. Check which subdomain(s) has(have) PHP-FPM enabled:

    mysql> select,,wssp.value as `PHP-FPM enabled` from domains d JOIN dom_param dp on ( and dp.param='webServerSettingsId') JOIN WebServerSettingsParameters wssp on (dp.val=wssp.webServerSettingsId and'nginxServePhp') where d.parentDomainId=1297;
    | id   | name          | PHP-FPM enabled |
    | 1302 |   | true         |
    | 1795 |     | true         |
    | 2539 |     | false        |
  4. Remove stale configuration files for the renamed subdomains (the ones that have 'PHP-FPM enabled' true):

    # rm -rf  /etc/php5/fpm/fpm.d/{sub,1}.domain.tld

    NOTE! use the old domain name here, not new. Otherwise you will remove correct configs.

  5. Restart PHP-FPM:

    # service php5-fpm restart

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 742559b1631652fadd74764ae8be475e e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article
Save as PDF