Results 1 to 5 of 5

Thread: Visitor counters are all broken

  1. #1
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    1,006
    cPanel/WHM Access Level

    Root Administrator

    Default Visitor counters are all broken

    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.

    - Scott
    Last edited by sneader; 07-22-2005 at 12:35 AM.

  2. #2
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    1,006
    cPanel/WHM Access Level

    Root Administrator

    Default 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. #3
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    1,006
    cPanel/WHM Access Level

    Root Administrator

    Default

    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.



    - Scott

  4. #4
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    1,006
    cPanel/WHM Access Level

    Root Administrator

    Default 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. #5
    Member
    Join Date
    Feb 2004
    Posts
    26

    Default

    Thanks! That solved it.

Similar Threads

  1. Visitor Counter broken when site moved with WHM Account Transfer
    By sneader in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 09-23-2009, 03:32 PM
  2. All counters doesnt work help!!!!!!!!!!!!!
    By bsasninja in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 01-20-2008, 11:37 AM
  3. ---Hit counters?---
    By adamsblueguitar in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 05-21-2007, 10:27 PM
  4. Counters
    By Hercio Neto in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 11-16-2004, 10:51 PM
  5. Counters Broke
    By phpcoder in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 08-31-2004, 05:13 PM