Submitted by steve@itgroup.net.au on Tue, 12/01/2015 - 18:54 Pro Licensee
Hi, I tried to run a awstats report and it failed - Error -Missing headers. I followed all the google advise and checked paths in the configuration of awstats and all were correct. restarted server, still no good. So, i figured to uninstall awstats and reinstall - which I did. NOW... in features and plugins - there is NO awstats ! How do I get it back please? Need to run some urgent reports !
Status:
Closed (fixed)
Comments
Submitted by andreychek on Tue, 12/01/2015 - 19:01 Comment #1
Howdy -- is the Virtualmin awstats program installed? If that isn't installed, it won't show up in the Features and Plugins section.
If it's not installed, you can install it with this command:
yum install wbm-virtualmin-awstats
Submitted by steve@itgroup.net.au on Tue, 12/01/2015 - 19:12 Pro Licensee Comment #2
thanks - that was missing - have installed and it is back. However, the Error - Missing Headers is still there when I try to run any of the reports. I have check the paths in the awstats config and they all check out?
Submitted by steve@itgroup.net.au on Tue, 12/01/2015 - 20:36 Pro Licensee Comment #3
I have been right through the awstats settings, but cannot get beyond that error message. Can you please advise what I can try now?
Submitted by andreychek on Tue, 12/01/2015 - 20:53 Comment #4
What awstats package do you have installed? You can determine that with this command:
rpm -qa | grep awstats
Also what is the path to awstats?
You can determine that with this command:
find / -name awstats.pl
Lastly, what is the output of this command:
cat /etc/webmin/virtualmin-awstats/config
Submitted by steve@itgroup.net.au on Tue, 12/01/2015 - 21:26 Pro Licensee Comment #5
Hi, thanks for the reply:
grep: awstats-7.0-1.el6.noarch wbm-virtualmin-awstats-5.1-1.noarch
find: awstats-7.0-1.el6.noarch wbm-virtualmin-awstats-5.1-1.noarch [root@hosting awstats]# ^C [root@hosting awstats]# find / -name awstats.pl /home/leeton/cgi-bin/awstats.pl /home/dimitybagley/cgi-bin/awstats.pl /home/jo-annemillinery/cgi-bin/awstats.pl /home/maizeaustralia/cgi-bin/awstats.pl /home/vintagedesigns/cgi-bin/awstats.pl /home/blog/cgi-bin/awstats.pl /usr/share/awstats/wwwroot/cgi-bin/awstats.pl /usr/libexec/webmin/virtualmin-awstats/awstats.pl /etc/webmin/virtualmin-awstats/awstats.pl
path: plugins=/var/www/awstats/plugins noedit=1 lang=/var/www/awstats/lang icons=/var/www/awstats/icon format= awstats=/etc/webmin/virtualmin-awstats/awstats.pl nocron=0 copyto= aliases= lib=/var/www/awstats/lib config_dir=/etc/awstats
Submitted by andreychek on Wed, 12/02/2015 - 00:21 Comment #6
Hmm, try editing
/etc/webmin/virtualmin-awstats/config
, and there, set the 'awstats=' line to point to this path:/usr/share/awstats/wwwroot/cgi-bin/awstats.pl
After doing that, restart Webmin with this command:
/etc/init.d/webmin restart
Once you do that, are you able to generate your awstats reports?
Submitted by steve@itgroup.net.au on Wed, 12/02/2015 - 01:37 Pro Licensee Comment #7
perfect ! working, thank you !
Submitted by steve@itgroup.net.au on Wed, 12/02/2015 - 17:44 Pro Licensee Comment #8
Submitted by andreychek on Wed, 12/02/2015 - 18:13 Comment #9
Excellent, I'm glad that's working for you now!