Visitor counters are all broken

sneader

Well-Known Member
Aug 21, 2003
1,178
57
178
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
 
Last edited:

sneader

Well-Known Member
Aug 21, 2003
1,178
57
178
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
 

sneader

Well-Known Member
Aug 21, 2003
1,178
57
178
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
 

sneader

Well-Known Member
Aug 21, 2003
1,178
57
178
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