Reconfiguration fails and Apache fails to start: Apache config generation failed certificate does not exist or is empty

Refers to:

  • Plesk 10.4 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk

Created:

2016-11-16 12:38:58 UTC

Modified:

2017-02-21 12:26:34 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Reconfiguration fails and Apache fails to start: Apache config generation failed certificate does not exist or is empty

Symptoms

Unable to reconfigure domain or restart or reload Apache:

# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
ERR (3): Apache config (13764726400.48499300) generation failed: Syntax error on line 42 of /var/www/vhosts/example.com/conf/13764726400.48499300_httpd.include:
SSLCACertificateFile: file '/usr/local/psa/var/certificates/cert-20mSLq' does not exist or is empty

The following errors are found in /var/log/plesk/panel.log :

ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1]
ERR [1] '/usr/local/psa/admin/bin/apache-config' '-t' failed with code 1.
stdout:
stderr:
Syntax error on line 50 of /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf:
SSLCertificateFile: file '/usr/local/psa/var/certificates/cert-20mSLq' does not exist or is empty
The file /usr/local/psa/var/certificates/cert-20mSLq is missing on a server.

Cause

The certificate in /usr/local/psa/var/certificates/ directory was removed, the file is empty, it has wrong permissions (not '0644'), or it doesn't exist while new configuration was not applied to Apache configuration files.

Resolution

Generate configuration files using "Webserver configurations troubleshooter" extension or httpdmng utility.

Reconfigure SSL certificates:

# plesk bin repair --reconfigure-ssl-certificates

For permission repair, please execute this command:

# chmod 644 /usr/local/psa/var/certificates/cert-*
Have more questions? Submit a request
Please sign in to leave a comment.