Applicable to:
- Plesk for Linux
Symptoms
- The following error appears on a new subscription creation:
PLESK_ERROR: 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.
- 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:
# setenforce
Enforcing - File creation denial entries in
/var/log/audit/audit.log
:CONFIG_TEXT: 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
Comments
0 comments
Please sign in to leave a comment.