Unable to generate the web server configuration file. Template_Exception: Can not restart web server

Created:

2016-11-16 13:07:05 UTC

Modified:

2017-04-24 11:57:16 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to generate the web server configuration file. Template_Exception: Can not restart web server

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Domain configuration failed with the following error:

Unable to generate the web server configuration file on the host <hostname.tld> because of the following errors:

Template_Exception: Can not restart web server:
file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 110
code: 0

Please resolve the errors in web server configuration templates and generate the file again.

Additionally, /var/log/plesk/panel.log file contains the following:

Details: [2015-11-14 18:13:11] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '80' '--https-port' '443' '--graceful'] with exit code [1]
[2015-11-14 18:13:42] ERR [panel] Apache config (14475211550.23384100) generation failed: Template_Exception: Can not restart web server:
file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 110
code: 0
Can not restart web server:

/var/log/plesk/rc_actions.log have the following content:

     Trying to graceful service apache2... Failed to get D-Bus connection: Unknown error -1

Cause

OS system was not properly upgraded.

Resolution

Follow instructions provided in the KB article 213373289

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