Unable to access the statistics

  • sridhar pandurangiah

    I just completed installing AWSTATS on one of my servers successfully. However on the second server (similar in configuration and OS's to the first) though I installed, created the conf file and updated the stats successfully I am unable to view the statistics from the browser. I am unable to figure out what I might have missed because the moment the access logs are read by AWSTATS on -update I guess I must have done it right. My setup is something like this on Centos

    /home/sridhar/public_html/exservicemen.in/log -- All apache logs are written here
    /etc/local/awstats/awstats.esmkak.conf -- My awstats configuration file

    I am accessing the statistics by keying in http://esm.sastratechnologies.biz/awstats/awstats.pl/?config=esmkak

    The awstats.esmkak.conf has the SiteDomain correctly specified.

    However I did notice that when I ran the configure,pl on my first server AWSTATS restarted Apache automatically on my second server it did not.

    My apache error logs show the following entries.

    [Sat Nov 10 22:28:15 2012] [error] [client] (13)Permission denied: exec of '/usr/local/awstats/wwwroot/cgi-bin/awstats.pl' failed
    [Sat Nov 10 22:28:15 2012] [error] [client] Premature end of script headers: awstats.pl

    Are there any permissions that I need to set?

    Any help will be appreciated. Thank you in advance

  • sridhar pandurangiah

    I managed to find a solution. Since I was running Centos I had SeLinux so had to change the security context by running the following command

    chcon -t httpd_sys_script_exec_t wwwroot/cgi-bin/awstats.pl


Log in to post a comment.