Article ID: 115299, created on Dec 14, 2012, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix


The problem described in this Knowledgebase article has been completely fixed since Parallels Plesk 11.5 (see the release notes).

Webserver reconfiguration fails with an error like:

New configuration files for the Apache web server were not created due to the errors in configuration templates: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 8 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 16 of /usr/local/psa/admin/conf/vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/ Permission denied


Incorrectly set context on the webserver configuration files.


  1. Install the package which provides the semanage utility:

    # yum install policycoreutils-python

  2. Change the context type for webserver configuration files:

    # semanage fcontext -a -t httpd_sys_content_t "/var/www/vhosts/[^/]*/conf(/.*)?"

  3. Apply your context type changes:

    # restorecon -Rv /var/www/vhosts/

  4. Reconfigure webserver configurations:

    # /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Search Words

type=AVC msg=audit(1399989774.040:700951): avc: denied { getattr } for pid=21958 comm="httpd" path="/tmp/zend_cache---Zend_LocaleC_en_US_month_gregorian_format_abbreviated_3" dev=dm-2 ino=1163 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:initrc_tmp_t:s0 tclass=file

New configuration files for the Apache web server were not created

De"ar Sir or Madam, we changed the IP-Address in 1. /etc/res"olv.conf 2. /etc/sysconfig/

"Dear Sir or Madam, we changed the IP-Address in 1. /etc/r"esolv.conf 2. /etc/sysconfig/network to our current addres"s. After this change, we got the following error //// Aufgr"und folgender Fehler in den Konfigurations-Templates konnten keine neuen Konfigurationsdateien für den Apache Webserver erstellt werden: nginx: [emerg] bind() to failed (99: Cannot assign requested address) nginx: configuration file /etc/nginx/nginx.conf test failed . Ausführliche Fehlerbeschreibungen wurden Ihnen per E-Mail zugesendet. Bitte lösen Sie das Problem und kli"cken Sie hier, um die beschädigten Konfigurationsdateien"" erneut zu erstellen, oder hier, um alle Konfigurationsdate"ien zu erstellen. //// We tried to solve the problem by following this article /// /// but couldn't solve it. Please inform us about further actions to be taken. Regards Maurice Steck

httpd issue

terminate called after throwing an instance of 'Swig::DirectorPureVirtualException'



dd0611b6086474193d9bf78e2b293040 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 aea4cd7bfd353ad7a1341a257ad4724a 0a53c5a9ca65a74d37ef5c5eaeb55d7f e8756e9388aeca36710ac39e739b2b37 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 01bc4c8cf5b7f01f815a7ada004154a2 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF