Symptoms
After rebuilding the Apache configuration with the rebuildhttpdconf script, the httpd.conf file is empty.
Description
The issue occurs when the Apache templates have become corrupt. They must be replaced for the Apache configuration to be rebuilt correctly.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Move the Apache templates folder aside.
mv -v /var/cpanel/template_compiles/var/cpanel/templates/apache2_4{,.$(date +%s)} - Reinstall the
ea-apache24-config-runtimepackage.yum reinstall ea-apache24-config-runtime
- Rebuild the Apache configuration.
/usr/local/cpanel/scripts/rebuildhttpdconf
- Restart Apache.
/usr/local/cpanel/scripts/restartsrv_httpd
Comments
0 comments
Article is closed for comments.