Monday, October 13, 2014

"Counter datafile "/var/cpanel/Counters/counter-name.dat" must be created in cpanel first!"

Issue : Unable to create counter script from CGI Center in cpanel.

Error Message :"Counter datafile

"/var/cpanel/Counters/counter-name.dat" must be created in cpanel first!"



Solution :

This can be resolved by creating the counter name data file in the cpanel

counter directory.
Execute the following commands as root user.

1. # cd /var/cpanel/counters
2. # touch counter-name.dat           where counter-name is the name of new

counter to be created.

3.Change the ownership of this file as cpanel user.

#chown cpanelusername:cpanelusername counter-name.dat

No comments: