Articles in this section

Plesk shows the following error: Unable to generate the web server configuration file

kb: bug kb: fixed Plesk for Linux ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

  • The following error is shown on Plesk Home page:

    PLESK_ERROR: Unable to generate the web server configuration file on the host <example.com> because of the following errors:
    Template_Exception: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/webmails/example.com_webmail.conf: No such file or directory 
    file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php 
    line: 75 
    code: 0 
    Please resolve the errors in web server configuration templates and generate the file again.

  • The file from the error exists:

    # ls -la /etc/httpd/conf/plesk.conf.d/webmails/example.com_webmail.conf
    -rw------- 1 root httpd 188 Apr 10 14:22 /etc/httpd/conf/plesk.conf.d/webmails/example.com_webmail.conf

  • Apache configuration test is successful:

    # httpd -t
    Syntax OK

Cause

Product issue:

  • #PPPM-6752 "Webserver Configuration Troubleshooter no longer shows that some configs are broken when they are actually not after reconfiguration (for example, after domain’s hosting settings were changed but these changes did not propagate yet)."
    Fixed in:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround

Since the error is only cosmetic it can be removed as follows:

  1. Connect to the server via SSH;
  2. Remove the error from the database:

    # plesk db "delete from Configurations where status<>'ok'"

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.