-----> Check and complete web server config file '/usr/local/apache2/conf/httpd.conf'
Warning: You Apache config file contains directives to write 'common' log files
This means that some features can't work (os, browsers and keywords detection).
Do you want me to setup Apache to write 'combined' log files [y/N] ?y
#AWStats推荐使用combined格式的日志,apache默认使用common格式.
所以这个地方提示要不要修改apache的配置文件将日志格式改为combined,当然回答yes
-----> Check and complete web server config file '/etc/httpd/conf/httpd.conf'
-----> Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):
> 这个选项是问你独立的配置文件(见上一个问题)放在哪?默认在/etc/awstats/下
-----> Create config file '/etc/awstats/awstats.www.sonkwo.com.conf'
Config file /etc/awstats/awstats.www.sonkwo.com.conf created.
-----> Restart Web server with '/sbin/service httpd restart'
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
-----> Add update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
You can do it manually by adding the following command to your cron:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.sonkwo.com
Or if you have several config files and prefer having only one command:
/usr/local/awstats/tools/awstats_updateall.pl now
Press ENTER to continue...
#上面是告知你你可以在crontab中单独增加/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.sonkwo.com来定期刷新域:
www.sonkwo.com域的日志统计,也可以使用/usr/local/awstats/tools/awstats_updateall.pl now 来刷新
所有域的(/etc/awstats下)的统计
A SIMPLE config file has been created: /etc/awstats/awstats.www.sonkwo.com.conf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for 'www.sonkwo.com' with command:
> perl awstats.pl -update -config=www.sonkwo.com
You can also read your statistics for 'www.sonkwo.com' with URL:
> http://localhost/awstats/awstats.pl?config=www.sonkwo.com
#配置文件创建完成,可以通过 perl awstats.pl -update -config=www.sonkwo.com来刷新你的日志统计
访问方式 http://$awstats_ip/awstats/awstats.pl?config=www.sonkwo.com
问题2:Error: AWStats database directory defined in config file by 'DirData'
parameter (/var/lib/awstats) does not exist or is not writable.
Setup ('/etc/awstats/awstats.www.sonkwo.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory). 解决:确保存在/var/lib/awstats目录,如果存在改变权限 chmod 777 /var/lib/awstats -R
的注释去掉,根据插件的描述(如下)还要安装Encode and URI::Escape 的perl模块,使用cpan安装
cpan> install Encode ; cpan> install URI::Escape
# PLUGIN: DecodeUTFKeys
# REQUIRED MODULES: Encode and URI::Escape
# PARAMETERS: None
# DESCRIPTION: Allow AWStats to show correctly (in language charset)
# keywords/keyphrases strings even if they were UTF8 coded by the
# referer search engine.
#