Article ID: 115979, created on Apr 18, 2013, last review on Jun 17, 2016

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

* The solution for Parallels Plesk 11.5 is described in article #116923.*


The web server configuration cannot be built. The following error is displayed in the Parallels Plesk interface:

New files of configuration for Apache web server were not built due to errors in configuration templates: mkdir: cannot create directory `/var/www/vhosts/domain1.test/conf': No such file or directory


This problem occurs when a virtual host directory has been removed, but a domain/subdomain is still set up to have physical hosting in Plesk. As a result, the utility httpdmng fails to create configuration files.


Download, unpack, make executable, and run the script attached to this article:

# wget
# unzip
# chmod +x
# ./

The script will find all domains with enabled physical hosting that have missing virtual host directories and recreate the basic virtual host structure for these domains. If the sub-directories "conf" or "statistics/logs" are missing, they will also be recreated with the correct permissions/ownerships.

The web server configuration will then be rebuilt from scratch using the method provided in KB article #111605.

Example of script output:

# ./
sub1.domain.test: no physical hosting definition in database.
customer1.tld: creating basic virtual host structure: ok
customer1.tld: creating 'conf' directory: ok
customer1.tld: creating 'logs' directory: ok

Rebuilding Apache configuration:

Search Words

Template_Exception: mkdir: cannot create directory `

apache reconfigure errors


Update to 11.5.30 failed

Web server reconfiguration is failed with error: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Empty error message from utility.

Apache configuration files not generated

reconfigurator not update alias

apache syntax error

Template_Exception: mkdir: cannot create directory

apache configuration errors

Apache 2 Test Page

apache synta

Details: PHP Fatal error: Call to a member function isDefault() on a non-object in

No such file or directory

Apache2 Test Page

error update


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

Email subscription for changes to this article
Save as PDF