Awstats: Why 'permission denied' reading logfile even with permissions 4777?

Peter Snow asked:

When I run Awstats via a web browser and click “Update now” it reports:

Error: Couldn't open server log file "/var/log/httpd/domains/" : Permission denied

Setup ('/etc/awstats/' file, web server or permissions) may be wrong.

File permissions:

# ls - la /var/log/httpd/domains/ 
-rwxrwxrwx 1 root root 68K Jul 22 18:29 /var/log/httpd/domains/

Server is CentOS 5.9 and does not ‘seem’ to have selinux enabled (appears to be installed but .conf file missing and selinuxenabled returns nothing).

My answer:

Did you check the permissions of all of the containing directories? One of those is likely where the trouble lies.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.