Article ID: 123970, created on Dec 18, 2014, last review on Dec 18, 2014

  • Applies to:
  • Plesk Automation 11.5

Symptoms

  1. After domain reconfiguration was executed:

    /usr/local/psa/admin/bin/httpdmng  --reconfigure-domain example.com
    

, its configuration file /var/www/vhosts/system/example.com/conf/httpd.conf appears to be empty.

  1. /var/log/audit/audit.log contains the output:

    type=AVC msg=audit(1418705193.873:6358): avc:  denied  { write } for  pid=24624 comm="httpd" name="jk-runtime-status.24624" dev=dm-0 ino=3146307 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_log_t:s0 tclass=file
    
    type=SYSCALL msg=audit(1418705193.873:6358): arch=c000003e syscall=2 success=no exit=-13 a0=7ff558abdfb0 a1=242 a2=1b6 a3=0 items=0 ppid=24623 pid=24624 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
    
    type=AVC msg=audit(1418705193.964:6359): avc:  denied  { write } for  pid=24628 comm="httpd" name="jk-runtime-status.24628" dev=dm-0 ino=3147433 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_log_t:s0 tclass=file
    
    type=SYSCALL msg=audit(1418705193.964:6359): arch=c000003e syscall=2 success=no exit=-13 a0=7ff558ab8990 a1=242 a2=1b6 a3=0 items=0 ppid=1 pid=24628 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
    

Cause

SELinux blocks the webserver writing operations.

Resolution

Follow the article to disable SELinux.

Search Words

empty configuration file

domain httpd.conf has no configuration

apache does not generate config

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF