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.

Error on counter "Counter datafile "/var/cpanel/Counters/userid.dat" must be created

Discussion in 'General Discussion' started by juanj2005, May 1, 2007.

  1. juanj2005

    juanj2005 Member

    Joined:
    May 1, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hi all,

    For some reason with the upgrade my visitor counter is getting this message:

    Counter datafile "/var/cpanel/Counters/userid.dat" must be created in cPanel first!

    I checked the documentation but no avail. I search the forum and I didn't find any answer.

    If anybody can help or give me some direction is greatly appreciated.

    thanks,
    jj
    :)
     
  2. duranduran

    duranduran Well-Known Member

    Joined:
    Apr 30, 2004
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    You need to create this file again, just put the visitor counter.

    pico -w /var/cpanel/Counters/userid.dat
     
  3. juanj2005

    juanj2005 Member

    Joined:
    May 1, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hi Alex,

    When you said "You need to create this file again, just put the visitor counter."

    You mean to put the visitor counter html command on my index.html ?

    thanks,
    jj
     
  4. duranduran

    duranduran Well-Known Member

    Joined:
    Apr 30, 2004
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    no, You need to recreate the DAT file (the userid.dat) in cpanel directory.
     
  5. juanj2005

    juanj2005 Member

    Joined:
    May 1, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hi Alex,

    I'm kinda new and I hate to bother you but is it possible to give me the steps by steps. you can email it



    thanks,
    jj
     
    #5 juanj2005, May 1, 2007
    Last edited by a moderator: Jul 22, 2014
  6. juanj2005

    juanj2005 Member

    Joined:
    May 1, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I fixed my problem... I will post my resolution later today..

    thanks!
    :D
     
  7. shivinvijai

    shivinvijai Member

    Joined:
    Mar 1, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Counter Issue

    Hi All,

    Steps for solving this issue "Could not write to counter file: /var/cpanel/Counters.countername.dat" while we set a counter for a domain

    Answer
    ------------

    Login to your server
    cd /hvar/cpanel/Counters
    chown username.username to countername.dat
    save and quit

    Refresh your browser and clear their caches.......

    Hope this will solve the issue. :)

    Thanks,

    Shivin Vijai
     
Loading...

Share This Page