Centos 7 install AWstats 7.6
9 年 ago jony Centos 7 install AWstats 7.6已关闭评论
download:
https://awstats.sourceforge.io/#DOWNLOAD #下载tar.gz
docs:
https://awstats.sourceforge.io/docs/awstats_setup.html
解压:awstats-7.6.tar.gz 到apache能访问到的目录,如:/var/www/html/awstats
cd /var/www/html/awstats/tools/
perl awstats_configure.pl #开始配置,看提示,按默认就可以。如果有文件不存在,创建就是
在apache配置文件httpd.conf最下面修改:
Alias /awstatsclasses "/var/www/html/awstats/wwwroot/classes/"
Alias /awstatscss "/var/www/html/awstats/wwwroot/css/"
Alias /awstatsicons "/var/www/html/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/var/www/html/awstats/wwwroot/cgi-bin/"
#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/var/www/html/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
到这里基本配置完成,下面开始采集数据
/var/www/html/awstats/wwwroot/cgi-bin/awstats.pl -update -config=demo
demo 域名,如果服务器上只有一个域名,demo就好。如果有多个域名,把demo换成对应域名就可以,这样采集的就是对应域名的数据
浏览器访问:
http://www.xxxx.com/awstats/awstats.pl?config=demo