Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    166
    You need to create this file again, just put the visitor counter.

    pico -w /var/cpanel/Counters/userid.dat
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. juanj2005

    juanj2005 Member

    Joined:
    May 1, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    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:
    166
    no, You need to recreate the DAT file (the userid.dat) in cpanel directory.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. juanj2005

    juanj2005 Member

    Joined:
    May 1, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    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:
    151
    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:
    151
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice