1.从官网下载最新的的awstats,解压缩
# unzip awstats-6.95.zip
# mv awstats-6.95 /usr/local/awstats
2. 安装配置awstats,以我服务器上的网站phpadmin.dean.com为例,根据情况请自行更改网址
[root@server56 LAMP]# cd /usr/local/awstats/
[root@server56 awstats]# mkdir -m 755 data
[root@server56 awstats]# perl tools/awstats_configure.pl -----> Check for web server install
Found Web server Apache config file '/etc/httpd/httpd.conf' <=============读取你的httpd配置文件
-----> Check and complete web server config file '/etc/httpd/httpd.conf'
All AWStats directives are already present.
-----> Update model config file '/usr/local/awstats/wwwroot/cgi-bin/awstats.model.conf'
File awstats.model.conf updated. <

本文详细介绍了如何在Linux系统中安装和配置Awstats,通过分析`/usr/local/apache/logs/druap.dean.com-access_log`日志文件来统计网站访问流量,并指导将Awstats更新命令加入到crontab定时任务中,以实现定期自动更新统计信息。
280

被折叠的 条评论
为什么被折叠?



