Subscriptions creation error: phpinimng failed: Job for php-fpm.service failed

Created:

2017-03-09 23:12:05 UTC

Modified:

2017-08-08 13:23:18 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Subscriptions creation error: phpinimng failed: Job for php-fpm.service failed

Applicable to:

  • Plesk for Linux

Symptoms

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. file: /usr/local/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter Error: phpinimng failed: Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details. Failed to start php-fpm service

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

SELinux is in enforcing mode and the following errors can be found 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

Please contact your system administrator to configure SELinux properly.

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


  # setenforce 0
 

 

 

Have more questions? Submit a request
Please sign in to leave a comment.