ubuntu 用Awstats分析Apache日志
安装方法
1、安装awstats
sudo apt-get install awstats
sudo vi /etc/apache2/awstats.conf
Alias /awstatsclasses "/usr/share/awstats/lib/"Alias /awstats-icon/ "/usr/share/awstats/icon/" Alias /awstatscss "/usr/share/doc/awstats/examples/css" ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ ScriptAlias /awstats/ /usr/lib/cgi-bin/ Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Include /etc/apache2/awstats.conf
sudo service apache2 reload
sudo cp /etc/awstats/awstats.conf /etc/awstats/awstats.192.168.1.2.confsudo vi /etc/awstats/awstats.192.168.1.2.conf
sudo /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -update -config=192.168.1.2
sudo vi /etc/cron.d/awstats