The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

corrupt httpd.conf can't access whm or cPanel

Discussion in 'General Discussion' started by viperwebservers, Mar 7, 2006.

  1. viperwebservers

    viperwebservers Registered

    Joined:
    Mar 7, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
    #1 viperwebservers, Mar 7, 2006
    Last edited: Mar 7, 2006
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    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
     
  3. a66fm

    a66fm Well-Known Member

    Joined:
    Jul 12, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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/
     
  4. adept2003

    adept2003 Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ~ "/(extra|special)/data"
    When trying to access WHM/Cpanel, what is the error message?
     
Loading...

Share This Page