- Unable to create domain with the following error:
PLESK_ERROR: Error: phpinimng failed: Unable to update the config file for 'fpm' service due to syntax errors. New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: No data. file: /usr/local/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Variable_Exception: No data. file: /usr/local/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0.
php-fpm service fails to restart with the following error:
# systemctl restart php-fpm
● php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-12-01 18:45:39 +07; 9s ago
Dec 01 18:45:39 hostname php-fpm: [01-Dec-2017 18:45:39] ERROR: [pool example.com] the prefix '/var/www/vhosts/system/example.com' does not exist or is not a directory
Dec 01 18:45:39 hostname php-fpm: [01-Dec-2017 18:45:39] ERROR: failed to post process the configuration
Dec 01 18:45:39 hostname php-fpm: [01-Dec-2017 18:45:39] ERROR: FPM initialization failed
Hosting type for example.com is forwarding:
- There is php-fpm pool configuration file for example.com:
# ls -l /etc/php-fpm.d/example.com.conf
-rw-r--r--. 1 root root 1367 Oct 19 17:24 /etc/php-fpm.d/example.com.conf
php-fpm service fails to start as domain's php-fpm pool configuration file was not removed after changing the hosting type to forwarding.
- Log in the server using SSH.
- Delete php-fpm pool configuration file:
# rm -f /etc/php-fpm.d/example.com.conf
Start php-fpm service:
# systemctl start php-fpm.service
Note: application pools of domains that were using PHP handlers provided by Plesk is located in