Cannot create Plesk subscription: phpinimng failed: Job for php-fpm.service fail

Started by Suhitha, Dec 19, 2025, 03:12 AM

Previous topic - Next topic

Suhitha

Question: Cannot create Plesk subscription: phpinimng failed: Job for php-fpm.service failed


Applicable to:

  • Plesk for Linux


Symptoms

1.The following error appears on a new subscription creation:

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.

2.PHP-FPM service enters failed state:

# systemctl status php-fpm
ERROR: unable to bind listening socket for address '/var/www/vhosts/system/example.com/php-fpm.sock...denied (13)
ERROR: FPM initialization failed


3.SELinux is in enforcing mode:
# setenforce
Enforcing

4.File creation denial entries in /var/log/audit/audit.log :
type=AVC msg=audit(1489100239.337:49492): avc:  denied  { create } for  pid=19538 comm="php-fpm" name="php-fpm.sock" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=sock_file

Cause

SELinux makes restrictions to PHP-FPM service.


Resolution

Contact system administrator to configure SELinux properly.

As a temporary workaround, SELinux can be set to "Permissive" mode:

# setenforce 0