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:
https://mydomain.com:10000/virtualmin-awstats/view.cgi?config=somedomain.com
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:
#!/bin/sh
exec /usr/share/awstats/wwwroot/cgi-bin/awstats.pl
However, the /usr/share/awstats directory does not even exist anymore.
Doing a ‘locate awstats.pl’ shows the following files:
/etc/webmin/virtualmin-awstats/awstats.pl
/home/user1/public_html/cgi-bin/awstats.pl
/home/user2/public_html/cgi-bin/awstats.pl
/usr/libexec/webmin/virtualmin-awstats/awstats.pl
/usr/libexec/webmin/virtualmin-awstats/run-all-awstats.pl
/var/www/awstats/awstats.pl
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
wbm-virtualmin-awstats-4.4-1
awstats-6.95-1.el5.rf
Any idea what’s going on here?