cgi web page hit counter stopped working

Status
Not open for further replies.

gurfle

Member
Messages
37
Reaction score
0
Points
6
At the bottom of my web page (http://dreyer.x10hosting.com/) I used to be able to get a hit counter to work using the following html tag:

<img src="/cgi-sys/Count.cgi?df=gurfle.dat|display=Counter|ft=3|md=5|frgb=255;255;255|dd=D">

As you see if you point you browser to http://dreyer.x10hosting.com/, now you get the following message where the counter used to appear:

"Could no write to counter file: /var/cpanel/counters/gurfle.dat"

Anybody know what's gone wrong and if possible, how to fix it? Thanks a bunch in advance for any and all tips!
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
What are the permission on that file?
 

Humza

New Member
Messages
66
Reaction score
3
Points
0
Hi, Go to cPanel File Manager then navigate to /var/cpanel/Counters/gurfile.dat and change permissions to 777. if that does not work i suggest use another counter.
 

dlukin

New Member
Messages
427
Reaction score
25
Points
0
Hi, Go to cPanel File Manager then navigate to /var/cpanel/Counters/gurfile.dat and change permissions to 777. if that does not work i suggest use another counter.

Actually, since it is just a data file, I would set the permissions to 666.

But then I wonder about the path /var/cpanel/counters/gurfle.dat and the url fragment /cgi-sys/Count.cgi

Where did you get that counter?
 

gurfle

Member
Messages
37
Reaction score
0
Points
6
Sorry, I've been tied up and have not had a chance to return and see all the helpful replies
Hi, Go to cPanel File Manager then navigate to /var/cpanel/Counters/gurfile.dat and change permissions to 777. if that does not work i suggest use another counter.
I cannot see from cPanel File Manager any folder resembling /var/cpanel/Counters. It looks like /var/cpanel/Counters is some sort of system folder, whereas cPanel File Manager just shows my personal stuff under /home/gurlfe.

It appears that /var/cpanel/Counters/gurfle.dat does exist because when I changed gurfle to girfler I get the message "Counter datafile /var/cpanel/Counters/gurfler.dat must be created in cPanel first", so as you say, permissions may be off for /var/cpanel/Counters/gurfle.dat. I'll need some more help to fix that, as I have no idea how to access that file.

Thanks, Nick

---------- Post added at 08:46 PM ---------- Previous post was at 08:43 PM ----------

Where did you get that counter?
Not sure, but somehow it was working until a few months ago. Maybe permissions got clobbered during the last big x10hosting move (see my response to Humza).

But then I wonder about the path /var/cpanel/counters/gurfle.dat and the url fragment /cgi-sys/Count.cgi

It is strange, but apparently /cgi-sys/Count.cgi is functional as it does display the expected nicely framed little box, just with the error message instead of the counter in it, so it does look like merely a permission problem with /var/cpanel/counters/gurfle.dat. See again my response to Humza for what happens if I change df=gurfle.dat to df=gurfler.dat and if I try the path df=/home/gurfle/public_html/gurfle.dat I get the message "Illegal datafile path!".

Thanks for your help looking into this. I think now all I need is a way to alter the permissions for /var/cpanel/counters/gurfle.dat. Any ideas?
 
Last edited:
Status
Not open for further replies.
Top