Submitted by arjones85 on Sat, 11/26/2011 - 23:49
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
Submitted by JamieCameron on Mon, 11/28/2011 - 00:07 Comment #1
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?Submitted by arjones85 on Mon, 11/28/2011 - 21:58 Comment #2
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.
Submitted by JamieCameron on Mon, 11/28/2011 - 23:03 Comment #3
Ok .. those paths are unexpected.
What does
rpm -q awstats
output on your system?Submitted by arjones85 on Tue, 11/29/2011 - 23:08 Comment #4
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
Submitted by JamieCameron on Tue, 11/29/2011 - 23:36 Comment #5
Ok, that would explain it...
Submitted by Issues on Tue, 12/13/2011 - 23:46 Comment #6
Automatically closed -- issue fixed for 2 weeks with no activity.