dido41

Registered
Aug 11, 2006
1
0
151
I am totaly new to cpanel and the usage of it. i went to cgi and clicked on counter. set the style i wanted, the count i wanted to start with, ste the count. then clicked on get html code. i then open up my frontpage and web. pasted to the bottom of page on html view, saved it but all i get showing on the page were the counter should be is the code i pasted there. no hit counter. can anyone give some detail on what to do?
thanks
 

Biopress

Registered
Sep 19, 2006
1
0
151
I am having the same issue as OP.

I work for the owner of http://www.bioenergetics-society.com, and the counters on all of the pages were reported to be broken as of this afternoon. Basically, it was working fine in the past and suddenly stopped working today without any changes being made.

I went into the index.shtml page to see what the coding was, and I noticed it said /cgi-sys rather than /cgi-bin. I'm unfamiliar with cpanel scripting, so I went into cpanel and checked for myself. Indeed the actual code provided by the system included /cgi-sys. But the problem is, I copied and pasted a new code and it still did not work. On all of the other pages of my boss's website the counter is showing up as [an error occurred while processing this directive].

I'm about to just go download a regular counter script and put it in the cgi-bin since I can't figure out where cgi-sys is located and where the .dat file is located on the server. But my boss prefers the one he had, any help on how to fix this would be appreciated.

Thanks a lot,
Sherry
 

markfrompf

Well-Known Member
Mar 27, 2006
174
0
166
Los Angeles, CA
I know you're looking for a way to use cPanel counters, but I use Google Analytics.

It's great. Plus, from my experience, showing people your hits is un-professional.

Analytics categorizes nicely.
 

Andrew1

Registered
Jan 11, 2003
4
0
151
Often, the /usr/local/cpanel/cgi-sys/Count.cgi file has permissions 000. It is also immutable, which means even root can't change the permissions. To fix it, first type:

chattr -i /usr/local/cpanel/cgi-sys/Count.cgi

to make it not immutable. Then, type

chmod 755 /usr/local/cpanel/cgi-sys/Count.cgi

to set the right permissions.