[iyunv@server56 LAMP]# cd /usr/local/awstats/
[iyunv@server56 awstats]# mkdir -m 755 data
[iyunv@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.
-----> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ? y <===============第一次需要创建一个新的config fiel
-----> Define config file name to create
What is the name of your web site or profile analysis ?
3.修改配置文件/etc/awstats/awstats.drupal.dean.com.conf ,找到logFile那一行,将其修给为自己网站的访问日志路径,并且增加一样DataDir指向上面创建的data目录 vim /etc/awstats/awstats.drupal.dean.com.conf
LogFile="/usr/local/apache/logs/druap.dean.com-access_log"