Log File Permissions

hostpc.com

Verified User
Joined
Aug 2, 2003
Messages
1,178
Location
Schenectady, NY
From a client:

I recently installed awstats on my account and I have it setup to purge the log files after analyzing them, but I receive the following permissions warning in the results:

Warning: awstats couldn't purge logfile "/var/log/httpd/domains/hisdomain.com.log".

Change your logfile permissions to allow write for your web server CGI process...

-----


I've got several customers, at a couple different companies asking about this, and I'm not finding ANYTHING regarding this. Can this be done? If so, How?

Thanks for any help you can offer.

Joe
 
Hello,

I've never use awstats before, but make sure that the cgi is running with adequate privileges to read the log file (probably root if it's to delete them). Also make sure that the files isn't being deleted by DA before the awstats are being run.. (depends on when your script runs).

John
 
It's client installed, not the global install....

is it still safe to change the permissions?

It's a very popular stats program, I'm surprised nobody has mentioned this yet.
 
hostpc.com said:
It's a very popular stats program, I'm surprised nobody has mentioned this yet.
Sure it has. Simple search proves that.

That link may answer your question, too. (didn't look myself though - I'm lazy)
 
Back
Top