I have installed awstats on a plain server and when I try to take it through IP/awstats in the browser, it gives Forbidden error. Apache error log shows "attempt to invoke directory as script: /var/www/awstats/"
Does anyone know how i can get the awstats working.. I had been sitting with this for some time and cant get it to working yet.. Please help..
Is 'awstats' a ScriptAlias that you're trying to access via www.domain.com/awstats/? A ScriptAlias'd directory won't always cooperate with a DirectoryIndex, and thus the attempt to access and "execute" directory will result in "hey... we can't execute that" error.
Yup, normal to get that error while accessing files in a ScriptAlias'd directory like that.
What are the permissions on the dirs leading up to access_log? Can the web server user access the directories leading up to the access_log file? He'll at least need execute permissions on '/var', '/var/log', and '/var/log/httpd.'
I believe the default permissions on the /var/log/httpd directory (on Fedora systems, at least) is root:root 700. Do a "chmod w+x /var/log/httpd" and you'll be OK. I believe those files are written with world-readable permissions, anyways.
There are "more secure" ways to handle it, but adding an execute bit to a directory that only contains log files isn't going to hurt.