Symptoms
When trying to restart the Apache service, you encounter the following error:
Starting httpd: AH00526: Syntax error on line 21355 of /etc/apache2/conf/httpd.conf: SSLCertificateFile: file '/var/cpanel/ssl/cpanel/mycpanel.pem' does not exist or is empty [FAILED]
Description
A corrupt or invalid pem file at '/var/cpanel/ssl/cpanel/mycpanel.pem' can cause this error to occur. cPanel no longer uses this file, so it can be moved out of the way to allow the rebuilding of the httpd.conf and restart of the Apache service.
Workaround
- Connect to your server using SSH as the root user
- Move the 'mycpanel.pem' file to a backup:
mv -v /var/cpanel/ssl/cpanel/mycpanel.pem{,.$( date +%Y%m%d )}
- Rebuild the Apache configuration:
/scripts/rebuildhttpdconf
- Restart the Apache service:
/scripts/restartsrv_httpd
Comments
0 comments
Article is closed for comments.