[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NUONCE AWSTATS error Re: (WAS) SOLVEDRe: [cobalt-users] .htac cess not working on a raq550 ?



-----Original Message-----
From: Robbert Hamburg (HaVa Web- & Procesdesign) 

Nott sure wheter this has been answered before.

But i installed the nuonce awstats packages.

However every time i try to access www.domain.com/awstats

i get The server encountered an internal error or misconfiguration and was
unable to complete your request. Your administrator may not have enabled CGI
access for this directory.
____________________________________


What you need to do is to watch your error log file

tail -f /var/log/httpd/error

Refresh your screen, and then look at what just was written to your
telnet/ssh window.  That will assist you in determining what is actually
wrong.  The awstats program has a .htaccess file in it.  Which tells apache
to use "cgi-script" instead of "cgi-wrapper".  The "cgi-wrapper", which is
the "Enable CGI" in the gui, NEEDS to have the script being ran by the site
admin.  The "cgi-script" does NOT care who runs it.

Make sure that the .htaccess file is there.  It should have been created the
very first time you installed/ran the package file.

[root web]# cd /home/awstats/
[root awstats]# ls -la
total 6
drwxr-xr-x    5 root     root         1024 Jun  6 08:38 .
drwxr-xr-x   18 root     root         1024 Jun 10 08:41 ..
drwxr-xr-x    5 root     root         1024 Jun  6 08:38 cgi
drwxr-xr-x    4 root     root         1024 Jun  6 08:38 data
-rw-r--r--    1 root     root           26 Jun  6 08:38 .htaccess
drwxr-xr-x    2 root     root         1024 Jun  6 08:38 templates
[root awstats]# cat .htaccess 
AddHandler cgi-script .pl
[root awstats]# 

If it is not there, create it.  

If you can post your error log detail (just what is printed when you do a
refresh), it will assist in figuring out what has caused your error.

Thanks,

Brian