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.

CGI Counter problem

Discussion in 'General Discussion' started by docthrock, Nov 21, 2004.

  1. docthrock

    docthrock Registered

    Joined:
    Nov 21, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I used cPanel to make the HTML and pasted it to my web page. The counter shows on my NVu editing page. No problem so far...

    When I upload the page and view it in my IE browser, I get an error message in the counter box:

    Counter datafile"/var/cpanel/Counters/username.dat%....blah...CddA" must be created in Cpanel First!

    Is there supposed to be a file called Count.cgi for the data file? Is it supposed to be loaded by cPanel, or do I create it myself? This is where I'm seriously lost.

    There is nothing in the (s)cgi-bin directory called "count" or ".dat", just other non counter related cgi files.

    I went ahead and created files in both CGI and SCGI directories. "username.dat" and "count.cgi" and simply put a zero in them thinking this is supposed to be where the counting is performed. How wrong am I?


    Does enabling CGI-Wrapper and creating a SCGI-bin folder have any infuence on this process?

    If there is supposed to be a counter datafile at /var/cpanel/counters/username.dat, how do I do that?

    BTW, I did use my admin name, not "username"...

    www.docthrock.com


    Thanks, my head hurts.... brain freeze. :(
     
    #1 docthrock, Nov 21, 2004
    Last edited: Nov 21, 2004
  2. elJeffo

    elJeffo Registered

    Joined:
    Jul 28, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    For anyone else who had this problem, replace the '%7C' in your img src for the counter graphic, with the '|' (pipe) character.
     
  3. Drizzt80

    Drizzt80 Registered

    Joined:
    May 16, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    This is EXACTLY the problem I am currently having. I am a new user to cPanel, and working through this problem noticed that my html editor was replacing the pipe with %7C. No matter what I have tried, I can't get it to save with the pipe and not the %7C. I am using Netscape Composer. Any ideas.

    D80
     
  4. SACHIN

    SACHIN Guest

    same problem

    i have same problem thisis img src
    <img src="/cgi-sys/Count.cgi?df=user.dat|display=Counter|ft=6|md=5|frgb=100;139;216|dd=A">

    when i add counter and check by preview i am getting following error.



    could not write to counter file: /var/cpanel/counters/user.dat


    :confused:
     
  5. luna

    luna Active Member

    Joined:
    Dec 27, 2003
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I have the same problem.
    Any suggestion?

    Thanks in advance.
     
  6. andyorourke

    andyorourke Member

    Joined:
    Dec 17, 2003
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    UK
    Edit the page in a text editor?

    Why not simply edit your html in a text editor?
     
  7. luna

    luna Active Member

    Joined:
    Dec 27, 2003
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I resolved it by myself.

    I modified httpd.conf on the domain that is having a problem.
    Some information was wrong.
     
  8. belaus

    belaus Member

    Joined:
    Mar 30, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Might be nice if you could share what was wrong :)
     
  9. raxafarian

    raxafarian Member

    Joined:
    Aug 29, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    counters don't seem to work after updating to 10.6.0-R55

    I see that Count.cgi was updated by the file date when cpanel upgraded, but since then I get a broken link in place of the counter.

    Any suggestions?
     
Loading...

Share This Page