I installed Virtualmin using the install script a few months ago and I just got my server upgraded from Centos 5.4 to Centos 5.5. The problem I am having might be that my server was using a non-genuine CentOS install and a simple yum upgrade wouldn’t do the trick, so my server management had to go in and upgrade it for me. However, after upgrading it looks like AWStats has completely changed and no longer works as it used to.
When accessing the stats through Virtualmin, the URL is of the form:
I get the error:
Error - Missing Headers
My /var/webmin/miniserv.error file contains the following errors at the end:
[21/Aug/2010:18:30:55 -0600] [my_IP] /virtualmin-awstats/view.cgi : Missing Headers
Also, opening the ~/public_html/cgi-bin/awstats.pl file, it contains:
However, the /usr/share/awstats directory does not even exist anymore.
Doing a ‘locate awstats.pl’ shows the following files:
I have updated the cgi-bin/awstats.pl file in one of the domains to exec /var/www/awstats/awstats.pl and it works when accessing through the domain’s cgi-bin, however it still does not work through Virtualmin.
Also, these are the installed awstats packages:
# rpm -qa | grep awstats
Any idea what’s going on here?