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.

Can't access cPanel

Discussion in 'General Discussion' started by biggdogg285, Nov 9, 2006.

  1. biggdogg285

    biggdogg285 Well-Known Member

    Joined:
    May 14, 2004
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I noticed today on my one of my servers that I can't access cPanel in the following fashion anymore:

    http://www.yourdomain.com/cpanel/

    It gives me a 404 error.

    If you go through WHM, and click the cPanel icon, it works fine. Also, if you go to the server's hostname it works fine.

    https://hostname.server.com:2083/

    I checked the '/usr/local/cpanel/logs/error_log/' for errors, but didn't find anything.

    Can anyone give me advice on where else I can look for problems?
    Any help would be appreciated.

    Thanks!
    -Adam
     
  2. tweakservers

    tweakservers Well-Known Member

    Joined:
    Mar 30, 2006
    Messages:
    379
    Likes Received:
    0
    Trophy Points:
    16
    check your httpd.conf and make sure the following lines exist:

     
  3. biggdogg285

    biggdogg285 Well-Known Member

    Joined:
    May 14, 2004
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Problem Solved

    Yeah, for some reason that was missing. Now that you gave me something to look for, I compared with another servers config, and found that the following block was missing:

    Code:
    ErrorDocument 400 /400.shtml
    ErrorDocument 401 /401.shtml
    ErrorDocument 403 /403.shtml
    ErrorDocument 404 /404.shtml
    ErrorDocument 500 /500.shtml
    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/
    
    Restarted apache, works fine now.

    Thanks for your time, I appreciate your help!

    Regards,
    -Adam
     
  4. tweakservers

    tweakservers Well-Known Member

    Joined:
    Mar 30, 2006
    Messages:
    379
    Likes Received:
    0
    Trophy Points:
    16
    glad things works fine for you now.
     
  5. adapter

    adapter Well-Known Member
    PartnerNOC

    Joined:
    Sep 17, 2003
    Messages:
    391
    Likes Received:
    0
    Trophy Points:
    16
    i have the same problem on my server, when i access on cpanel i wait a life and it dont open the panel, i have check the httpd.conf and there is all

    i have also restart cpanel and try upcp --force but it stop on

    Updating /scripts ...
    Sync Source: http://httpupdate.cpanel.net/STABLE/scripts
    Fetching http://httpupdate.cpanel.net/cpanelsync/STABLE/scripts/.cpanelsync.lock (0)....@198.66.78.11......connected......receiving......Done
    Fetching http://httpupdate.cpanel.net/cpanelsync/STABLE/scripts/.cpanelsync.bz2 (0)....@198.66.78.11......connected......receiving...30%...60%...90%...100%......Done
    Fetching http://httpupdate.cpanel.net/cpanelsync/STABLE/scripts/cPScript/Version.pm.bz2 (0)....@198.66.78.11......connected......receiving...100%......Done
    Got file ./cPScript/Version.pm ok (md5 matches)
    Done updating /scripts
     
  6. ericgregory

    ericgregory Well-Known Member
    PartnerNOC

    Joined:
    Nov 27, 2002
    Messages:
    124
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Pennsylvania
    cPanel Access Level:
    DataCenter Provider
    If you are running into problems there, by all means, please send in a ticket and we will check it out for you ASAP.

    Best Regards:

    Eric Gregory
    cPanel, Inc.
     
Loading...

Share This Page