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.

hit counter

Discussion in 'General Discussion' started by dido41, Aug 11, 2006.

  1. dido41

    dido41 Registered

    Joined:
    Aug 11, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. Biopress

    Biopress Registered

    Joined:
    Sep 19, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  3. markfrompf

    markfrompf Well-Known Member

    Joined:
    Mar 27, 2006
    Messages:
    176
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
  4. Andrew1

    Andrew1 Registered

    Joined:
    Jan 11, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page