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.

Visitor counters are all broken

Discussion in 'General Discussion' started by sneader, Jul 22, 2005.

  1. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Ugh, what a day... SMTP problems... FrontPage problems... now I see that all my customer's visitor counters are broken. The counters are showing up as a 'broken icon' and generating 500 errors.

    Any pointers? FYI, permissions of /usr/local/cpanel/cgi-sys/Count.cgi are:

    -rwxr-xr-x 1 root root 151000 Jul 21 04:27 Count.cgi


    I think I'm turning off Auto Current Updates for a while. :eek:

    - Scott
     
    #1 sneader, Jul 22, 2005
    Last edited: Jul 22, 2005
  2. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Count.cgi corrupted?

    OK, I'm getting closer to solving the problem. I'm seeing the following in /etc/httpd/logs/error_log

    [Fri Jul 22 00:23:07 2005] [error] [client 123.123.123.123] Premature end of script headers: /usr/local/cpanel/cgi-sys/Count.cgi

    Somehow maybe the Count.cgi program got corrupted? Now to figure out how to reinstall, etc. :(

    - Scott
     
  3. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Ok, I must be dumb. Count.cgi is all gibberish. Is this an encrypted cgi program or what am I doing wrong? It starts with "ELF " if this helps. Many, but not all, of the .cgi programs in the /cgi-sys directory are the same. But others are in plain text.

    :confused:

    - Scott
     
  4. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Fixed it.

    Sure was nice to talk to myself tonight while I resolved the problem. Thanks to a 3 year old post here on this forum, someone mentioned changing the permissions from root.root to root.wheel. That did it. For the newbies like me out there, I went into /usr/local/cpanel/cgi-sys/ and then issued the command

    ls -l

    This showed permissions on all the files in the directory. Here is how Count.cgi was listed:

    -rwxr-xr-x 1 root root 151000 Jul 21 04:27 Count.cgi

    Then I issued this command:

    chown root.wheel Count.cgi

    Now the permissions look like this:

    -rwxr-xr-x 1 root wheel 151000 Jul 21 04:27 Count.cgi


    I did NOT change the permissions on this file or any files today, and I have no idea how this happened. (except I have a ticket opened with cPanel on another unrelated matter, and they did root into the box 6 hours ago. Hmmm.....)

    Glad today is done... tomorrow MUST be a better day. :)

    - Scott
     
  5. EDevil

    EDevil Member

    Joined:
    Feb 17, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Thanks! That solved it.
     
Loading...

Share This Page