enthrop
7-21-04, 01:05 PM
Hey,
I can update all my stats manually from a command line, but I can't get the CGI version of the webpage to update when i hit the "update link." Here's the error msg I get:
Error: Couldn't open server log file "/var/log/httpd/access_log" : Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
So I thought that 'nobody' didn't have permission to access the logs, so:
[]# ls -la
total 3192
drwx------ 2 root root 4096 Jul 18 04:03 .
drwxr-xr-x 8 root root 4096 Jul 18 04:03 ..
-rw-r--r-- 1 root awstats 196940 Jul 21 13:08 access_log
-rw-r--r-- 1 root awstats 993463 Jul 18 03:28 access_log.1
-rw-r--r-- 1 root awstats 416705 Jul 11 03:18 access_log.2
-rw-r--r-- 1 root awstats 715358 Jul 4 02:12 access_log.3
-rw-r--r-- 1 root awstats 673450 Jun 27 02:34 access_log.4
[cut off rest]
[]# groups nobody
nobody : nobody awstats
Is there some setting or something that I'm forgetting? I would perfer if I could keep all ownership and group to root, but if this is the only way to do it, what am I doing wrong?
Thanks in advance - I couldn't find any other thread related to this.
I can update all my stats manually from a command line, but I can't get the CGI version of the webpage to update when i hit the "update link." Here's the error msg I get:
Error: Couldn't open server log file "/var/log/httpd/access_log" : Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
So I thought that 'nobody' didn't have permission to access the logs, so:
[]# ls -la
total 3192
drwx------ 2 root root 4096 Jul 18 04:03 .
drwxr-xr-x 8 root root 4096 Jul 18 04:03 ..
-rw-r--r-- 1 root awstats 196940 Jul 21 13:08 access_log
-rw-r--r-- 1 root awstats 993463 Jul 18 03:28 access_log.1
-rw-r--r-- 1 root awstats 416705 Jul 11 03:18 access_log.2
-rw-r--r-- 1 root awstats 715358 Jul 4 02:12 access_log.3
-rw-r--r-- 1 root awstats 673450 Jun 27 02:34 access_log.4
[cut off rest]
[]# groups nobody
nobody : nobody awstats
Is there some setting or something that I'm forgetting? I would perfer if I could keep all ownership and group to root, but if this is the only way to do it, what am I doing wrong?
Thanks in advance - I couldn't find any other thread related to this.