Counter problem / permission denied...

loneranger

Verified User
Joined
Feb 4, 2006
Messages
6
Hi,
Whenever I access the counter I get some nasty errors, as below:

Warning: fopen(/home/romaniap/domains/.../public_html/phpmycounter/counter.dat) [function.fopen]: failed to open stream: Permission denied in /home/romaniap/domains/.../public_html/phpmycounter/counter.php on line 24

Warning: fputs(): supplied argument is not a valid stream resource in /home/romaniap/domains/.../public_html/phpmycounter/counter.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/romaniap/domains/.../public_html/phpmycounter/counter.php on line 26


Now, this happens even after I set permission to 755 for all the files in the counter's folder and also for the folder.

(the 24, 25, 26th lines in "counter.php", to which errors reffer, are like this:
$fp = fopen($CONFIG['counter_data'], "w");
fputs ($fp, $count);
fclose ($fp);
)

I just can't track the bug.... somebody any ideas..??

Thanx
 
i don't know i not examined that, and the truth that it is doesn't interest me..
because i fixed my problem
 
SELINUX is not a good idea for a hosting environment.

If you're going to use it, then use it for a week or two or sixteen ;) with just logging enabled first, so you know which rules you have to change.

Jeff
 
Back
Top