在ubuntu中安装awstats只需要apt-get install awstats。
需要设置的
DirIcons (icon的路径,是相对于网站根目录的绝对路径:/icon)
SiteDomain (输入你的域名:yourdomain)
/usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -config=archives -update -lang=cn -dir=/home/avauntage/awstats -awstatsprog=/usr/lib/cgi-bin/awstats.pl
/etc/apache2/sites-available/default
NameVirtualHost *
ServerAdmin lishiliang@bnu.edu.cn
DocumentRoot /home/avauntage/dagwww
Options FollowSymLinks
AllowOverride None
Options Indexes FollowSymLinks MultiViews
AllowOverride None
DirectoryIndex index.htm index.html
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
Alias /awstatsicons/ /usr/share/awstats/icon/
Options None
AllowOverride None
Order allow,deny
Allow from all
Alias /stats/ /home/avauntage/awstats/
Options None
AllowOverride None
Order allow,deny
Allow from all
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On