CentOS 6 import from CentOS 5 results in broken awstats

Hi!

I get "Missing Headers" errors in the "View AWStats" screen for newly-imported virtual servers from a CentOS 5 box to a CentOS 6 box. miniserv.err recorded errors:

[26/Nov/2011:23:24:57 -0600] [24.181.27.101] /virtualmin-awstats/view.cgi : Missing Headers [26/Nov/2011:23:25:45 -0600] [24.181.27.101] /virtualmin-awstats/view.cgi : Missing Headers [26/Nov/2011:23:25:46 -0600] [24.181.27.101] /virtualmin-awstats/view.cgi : Missing Headers

I was able to fix the errors by replacing the awstats paths in the Features and Plugins section to the correct /var/www/html/awstats path.

Looks like perhaps a new path for CentOS 6 servers?

Status: 
Closed (fixed)

Comments

That's odd, as on my test system the default AWstats paths are correct.

Could you post the contents of /etc/webmin/virtualmin-awstats/config on your system?

Sure, here you go:

[root@bigbertha ~]# cat /etc/webmin/virtualmin-awstats/config
plugins=
noedit=1
lang=
icons=/var/www/awstats/icon
awstats=/var/www/awstats/awstats.pl
nocron=0
lib=
config_dir=/etc/awstats
format=
copyto=
aliases=

Unfortunately I cannot remember what was actually in there as the path before. I'll be happy to provide this info though if you can let me know where it would be saved at. I have several weeks of backups, the virtualmin.tar.gz backup however doesn't seem to include this info.

Also I just realized I have an errant "html" in the path I included earlier, apologies. The path above is the correct one I had to set it to.

Ok .. those paths are unexpected.

What does rpm -q awstats output on your system?

Ya got me. Looks like when I installed the rpmforge repo in order to install something it ended up updating awstats as well.

Forced removal of the rpmforge version and reinstalled the one from the virtualmin repo. Then changed the paths to:

[root@bigbertha awstats]# cat /etc/webmin/virtualmin-awstats/config
plugins=
noedit=1
lang=
icons=/usr/share/awstats/wwwroot/icon
format=
awstats=/usr/share/awstats/wwwroot/cgi-bin/awstats.pl
nocron=0
copyto=
aliases=
lib=
config_dir=/etc/awstats

Sorry for the misunderstanding :D

Ok, that would explain it...

Automatically closed -- issue fixed for 2 weeks with no activity.