• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Unable to generate the web server configuration error

Stephan Griesel

Basic Pleskian
Can I run Plesk repair utility to fix the issue below?

Received the following email alert. I opened the Abstract.php file on the server and there is just a bunch of characters that does not make any sense? Is this standard in Plesk?

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

Template_Exception: apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Syntax error on line 7 of /etc/apache2/conf-enabled/zz010_psa_httpd.conf: Could not open configuration file /etc/apache2/plesk.conf.d/vhosts/somewebsite.com.conf: No such file or directory

file: /opt/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.​

This was also showing on the Plesk console. I had a look at the folder 'mywebsite.com.conf', text red so it means its an archive file right? I suspect the client may have moved this site to another domain. How can I solve this?

New configuration files for the Apache web server were not created due to the errors in configuration templates: apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Syntax error on line 7 of /etc/apache2/conf-enabled/zz010_psa_httpd.conf: Could not open configuration file /etc/apache2/plesk.conf.d/vhosts/mywebsite.com.conf: No such file or directory . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter​
 
Last edited:
Hi Stephan Griesel,

I opened the Abstract.php file on the server
Why do you want to open this file?


there is just a bunch of characters that does not make any sense?
Plesk uses encryption to protect the code developped by Plesk. ;)


I had a look at the folder 'mywebsite.com.conf'
This is not a folder, it is the domain - specific webserver configuration file.


I suspect the client may have moved this site to another domain
Please check the domains on your server. If the specfic (sub)domain is not listed at

=> HOME > Domains

... it has been removed and the existing (sub)domain - specific webserver configuration file should have been deleted from your server.


Can I run Plesk repair utility to fix the issue below?
The recommended way is either to use the Plesk Repair Utility, or the usage of
See the details in Configuration Troubleshooter


or use the example command:
Code:
plesk repair web -y -v
 
Why do you want to open this file?

Log file was referencing to it so was curious what it contains

Plesk uses encryption to protect the code developped by Plesk. ;)

Yep I figured :)

This is not a folder, it is the domain - specific webserver configuration file.

Thank you for confirming. Noticed the .conf at the end of file.

... it has been removed and the existing (sub)domain - specific webserver configuration file should have been deleted from your server.

Looks like the domain was added as subdomain initially, not sure why everything was not removed when client deleted domain

The recommended way is either to use the Plesk Repair Utility

Repair gave me same warning as log file, end up just deleting the config file mentioned earlier. Will monitor this.


Thank you for your thorough reply @UFHH01. New web server files were generated after I completed all of above and it the process completed successfully.
 
Back
Top