corrupt httpd.conf can't access whm or cPanel

viperwebservers

Registered
Mar 7, 2006
1
0
151
Some one please help! My support is virtually non-existant and I have people screaming at me because they can't access their cPanel or WHM.

I am new to dedicated servers and made a HUGE mistake. I am running a linux server and downloaded httpd.conf and edited it notepad and re-uploaded it. YES...IT WAS A STUPID MISTAKE! Needless to say, my httpd.conf no longer worked.

This is what happened:

1. httpd failed. No websites are up and no one can access cPanel or WHM although luckily, I am able to login to my server control panel.

2. I SSH into my server and using easyapache, I re-installed apache to defaults to create a new httpd.conf file.

3. I then logged into my server control panel and did another Apache update because I need php 5.0.5

4. I then did a cPanel, system and server software update. This brings websites back up, all my accounts are there...but no one on my server can access cPanel or WHM.

I am dying here...I've been down for two days with no support and don't know where to go from here.

Can anyone help!
 
Last edited:

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,980
156
368
SLC
cPanel Access Level
DataCenter Provider
If you have local backups inabled then you will have a backup httpd.conf but if you left it for 2 days the daily would be gone (weekly monthly may be there )

run

/scripts/rebuildhttpdconf

then you may have to fix each of the virtual hosts containers by hand
 

a66fm

Well-Known Member
Jul 12, 2003
78
0
156
Greece
check your http.conf file for these lines if you can not find them just add them at its end
Code:
ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
Alias /java-sys/ /usr/local/cpanel/java-sys/
Alias /img-sys/ /usr/local/cpanel/img-sys/
Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/
Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/
ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/sredirect.cgi
Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/
Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/