配置awstats,使之与搜索引擎的兼容

1、awstats对搜索引擎的支持问题。google等所使用的为utf-8编码,所以,需要使用decodeutfkeys
即启用LoadPlugin=”decodeutfkeys”
2、但再次运行测试脚本时,却提示perl缺少Encoding模块。需要安装Encode,URI-1.35.tar.gz。
下载地址ftp://ftp.tsinghua.edu.cn/mirror/CPAN/modules/by-module/Encode/Encode-2.12.tar.gz
ftp://ftp.tsinghua.edu.cn/mirror/CPAN/modules/by-module/URI/URI-1.35.tar.gz
或者使用命令cpan。然后install即可
3、解包安装
#tar -xzvf Encode-2.12.tar.gz
#tar -xzvf URI-1.35.tar.gz
#cd Encode-2.12.tar.gz
#chmod +x Makefile.PL
#perl Makefile.PL
#make;make install
#cd URI-1.35
#chmod +x Makefile.PL
#perl Makefile.PL
#make;make install
4、刷新awstats的页面,正常。错误消失:)

Leave a Reply

Your email address will not be published. Required fields are marked *