Posted by & filed under Internet.

Came across an error after mistakenly clicking a link in my hosting control panel.

Unable to locate httpd.conf at /usr/local/cpanel/Cpanel/ConfigFiles.pm line 27.
Cpanel::ConfigFiles::find_httpconf(undef) called at /usr/local/cpanel/Cpanel/ApacheConf.pm line 206
Cpanel::ApacheConf::loadhttpdconf() called at whostmgr/bin/whostmgr4 line 197
main::listaccts() called at whostmgr/bin/whostmgr4 line 157

At the time, WHM was working but none of the sites on the server would load. Trying to restart httpd manually from PuTTY resulted in an error that httpd.conf couldn’t be found.

Fortunately, there was an easy fix.

/scripts/rebuildhttpdconf

It’s a script included with WHM that rebuilds the httpd.conf file. Ran it, waited a couple of minutes while the server churned, started Apache, and everything was back to normal.

Leave a Reply

Your email address will not be published. Required fields are marked *