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 update