• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Configuration Issue - Unable to generate the web server configuration file

Joel Hansen

New Pleskian
Hey there,

Something is wrong with my Plesk install. Websites aren't working, returning a 'Failed to open page - Safari can't connect to the server'.

I recently had to change my server's IP address.

I reinstalled my SSL certificate, did a Reread of IPs in Plesk Tools and Settings, set them all to shared IP and to the new server SSL certificate. Restarted apache2, psa, and bind9.

I got some weird error in the panel saying my configuration files were screwy. I hit the link 'Here' to remake the configuration files. It succeeded, so I don't have access to that error message anymore.

Now, after creating some test accounts they are failing to work. The server emails me the following message:

HTML:
Unable to generate the web server configuration file on the host <spruce.concrete.ly> because of the following errors:

Syntax error on line 283 of /opt/psa/admin/conf/generated/13693520550.39550700_server.include:
SSLCertificateFile: file '/opt/psa/var/certificates/certDIN0T2S' does not exist or is empty


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

I'm going to try and re install my SSL certificate, but I'm not sure that will help. Being an issue within the /psa folder it seems like a Plesk thing. Maybe some /tmp folder I could empty?

Thanks for the help.

G
 
As possible workaround you can use command

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

But note that according to this KB-article http://kb.parallels.com/en/1736 correct order of the steps are:

1. Create certificate
2. Click 'Secure the Panel' using the created certificate
3. Set the certificate to the IP-addresses
 
Back
Top