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.

Cant access Cpanel through /cpanel/

Discussion in 'General Discussion' started by web12, Dec 17, 2002.

  1. web12

    web12 Well-Known Member

    Joined:
    Nov 20, 2002
    Messages:
    240
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Anyone got any ideas why my clients cant access cpanel via domain.com/cpanel/ ?

    They can access it by doing domain.com:2082/ but most of them use the other method.

    It only stopped working a little while ago.
     
  2. web12

    web12 Well-Known Member

    Joined:
    Nov 20, 2002
    Messages:
    240
    Likes Received:
    0
    Trophy Points:
    16
    Yep,

    Its there alright. Anything else i might try?
     
  3. mind-field

    mind-field Active Member

    Joined:
    Sep 28, 2002
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Just my humble opinion, make sure their is content in the redirect.cgi file.

    And it isn't empty ;)

    David
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Also out of curiousity, what happens when you try to use /cpanel does it give an error of any sort? Also look at the apache error_log and grep for cpanel and look for things like;

    [error] [client 65.95.215.103] script not found or unable to stat: /cpanel/
    [error] [client 65.95.215.103] File does not exist: /cpanel/

    In the above case restarting apache and cpanel had corrected it. So that in access_log it showed
    [17/Dec/2002:20:37:06 -0500] &GET /cpanel/ HTTP/1.1& 302 315
     
  5. web12

    web12 Well-Known Member

    Joined:
    Nov 20, 2002
    Messages:
    240
    Likes Received:
    0
    Trophy Points:
    16
    Hi, Thanks for the replies.

    Have tried restarting apache, still no good...

    Here is the content of redirect.cgi
    -------------------------------------------------
    #!/usr/bin/perl

    open(CPCONF,&/var/cpanel/cpanel.config&);
    while(&CPCONF&) {
    if (/^port=(\d+)/) {
    $port = $1;
    }
    }
    close(CPCONF);
    if ($port eq &&) { $port = '2082'; }

    if ($ENV{'HTTP_HOST'} ne &&) {
    print &Location: http://$ENV{'HTTP_HOST'}:${port}\n\n&;
    exit;
    }

    print &Location: http://$ENV{'REMOTE_ADDR'}:${port}\n\n&;
    ------------------------------------------------------------------
    Looks right to me...

    And when you do /cpanel it comes up with internal server error, but there is nothing being written to the logs.

    Weird huh?
     
  6. web12

    web12 Well-Known Member

    Joined:
    Nov 20, 2002
    Messages:
    240
    Likes Received:
    0
    Trophy Points:
    16
    Ok,

    I tell a lie. I was looking to see if it was going in the domains error logs... just checked server logs and this is listed

    Premature end of script headers: /usr/local/cpanel/base/redirect.cgi

    Any ideas?
     
  7. web12

    web12 Well-Known Member

    Joined:
    Nov 20, 2002
    Messages:
    240
    Likes Received:
    0
    Trophy Points:
    16
    Just an update.

    Webmail, nor any of the other redirects are working.

    Could this be suexec?
     
  8. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    [quote:ee9c0da484][i:ee9c0da484]Originally posted by web12[/i:ee9c0da484]

    Just an update.

    Webmail, nor any of the other redirects are working.

    Could this be suexec?[/quote:ee9c0da484]

    I don't think so as I do not have suexec enabled on one server and the redirects work fine, as do the servers with suexec enabled. I'm with thaphantom on this &scratching head&
     
  9. web12

    web12 Well-Known Member

    Joined:
    Nov 20, 2002
    Messages:
    240
    Likes Received:
    0
    Trophy Points:
    16
    Hope thats not the problem, I dont want to disable suexec as i had a problem not long ago where i needed to id a spammer.

    Anyone got any more suggestions?
     
  10. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If you haven't already done so, I would suggest emailing cpanel support. They will ask for your server login info and check it out. It does sound strange.

    Have you tried updating cpanel?
     
  11. TheVoice

    TheVoice Well-Known Member

    Joined:
    Feb 7, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    /scripts/fixheaders
     
  12. web12

    web12 Well-Known Member

    Joined:
    Nov 20, 2002
    Messages:
    240
    Likes Received:
    0
    Trophy Points:
    16
    /scripts/fixheaders didnt work unfortunately.

    So i emailed CpanelSupport.

    Awaiting response now.

    Thanks peeps.
     
  13. cikul

    cikul Well-Known Member

    Joined:
    Nov 15, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    I got same problem last week, then i check the permission of /usr/bin/perl that file in wrong permission, please check the permission of that file, you must give execute access to that file.
    ;)

    Hope this help.
     
  14. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Now that &two people& have reported having this problem, I'm scratching my in wonder? Neither mentioned if the problem just started or if started after a specific was change was made -- basic troubleshooting question.

    It would really bother me if, while the Moon was full, a black cat meowed and someone walked under a ladder, caused &things& to magically change on the Server. Computer logic demands a reaction, only to an action. If something is causing things to change, can the details be provided so others can watch out for the same problems? A &Get out of a Server Jam - Free& card will provided to all those that do. :D
     
  15. web12

    web12 Well-Known Member

    Joined:
    Nov 20, 2002
    Messages:
    240
    Likes Received:
    0
    Trophy Points:
    16
    Hiya,

    Problem is solved now thank goodness.

    Here is the reply from Cpanel Support:-
    ---------------------------------------------------------
    It looks like the permissions on the redirect
    script we changed, from the suexec_log in&nb
    sp;/usr/local/apache/logs/ :


    [2002-12-19 12:48:13]: error: file is writable by&
    nbsp;others: (/usr/local/cpanel/base/redirect.cgi)


    looking at it :
    -rwxrwxrwx 1 root wheel 356 Jan 30 2002
    redirect.cgi*


    The fix was to chmod 755 /usr/local/cpanel/base/*.
    cgi


    Please let me know if you have more trou
    bles with this.
    -----------------------------------------------------------------
     
  16. Guda

    Guda Member
    PartnerNOC

    Joined:
    Aug 16, 2001
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    1
    One last check you may want to make for those of you who still have probelms is that in the first virtual host entry &VirtualHost host.domain.com& has User nobody and Group nobody directives.
     
  17. parhelic

    parhelic Well-Known Member

    Joined:
    Oct 27, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Sorry, this didnt resolve the problem for me :(


    The permissions on my redirect.cgi look fine:

    -rwxr-xr-x 1 root wheel 686 Mar 11 10:18 redirect.cgi*

    I'm still getting the following in my apache error_log:

    [Fri Mar 21 15:34:20 2003] [error] [client 24.243.146.187] Premature end of script headers: /usr/local/cpanel/base/redirect.cgi
    [Fri Mar 21 15:34:20 2003] [error] [client 24.243.146.187] File does not exist: /usr/local/apache/htdocs/500.shtml

    Every fix that's been suggested so far has not fixed the problem.
     
  18. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    I had the same problem the past couple days, every single CGI using perl executed through apache did not run. Premature script errors and 500 errors.

    I rebooted the server and it all cleared up.

    Not a good way to fix a problem and I dont know what caused it in the first place.

    No perl .pl or .cgi would run, even things unrelated to cpanel in customers accounts. Never had this happen in the years we have offered hosting and apache with cgi (perl).
     
  19. DSD

    DSD Member

    Joined:
    Mar 14, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I've just upgraded one of my servers to Cpanel 7 Release, and all of the sudden, none of my redirects work (webmail, cpanel, etc). Also, none of my cgi programs work (404 error).

    I've rebooted the server, and that doesn't seem to help.

    I'll submit a ticket now

    cPanel.net Support Ticket Number:
     
  20. DSD

    DSD Member

    Joined:
    Mar 14, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    On a server reboot, I get this:

    /usr/local/apache/bin/httpd: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

    and apache won't restart.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page