日期:2014-05-17 浏览次数:20905 次
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.conf sudo 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