2012年12月

Awstats的LogFormat配置和nginx的LOGFORMAT

nginx LogFormat:

 

log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';


Awstats LogFormat:

LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot %otherquot"

Nginx Perl FastCGI


apt-get install libfcgi-perl

wget http://www.l-yp.com/usr/uploads/2012/12/979355951.pl -O /usr/bin/fastcgi-wrapper.pl
wget http://www.l-yp.com/usr/uploads/2012/12/3334648281.txt -O /etc/init.d/perl-fcgi
chmod +x /usr/bin/fastcgi-wrapper.pl
chmod +x /etc/init.d/perl-fcgi
update-rc.d perl-fcgi defaults
insserv perl-fcgi

- 阅读剩余部分 -

awstats 添加qqhostinfo插件

下载插件:http://pan.baidu.com/share/link?shareid=162768&uk=3120992964


解压上传至/usr/share/awstats/plugins(该路径是apt-get安装的awstats适用,编译或其他yum安装视自身情况改变。)
修改其中qqwry.pl文件qqwry.dat的绝对路径,my $ipfile="路径/qqwry.dat"
修改你的配置文件(/etc/awstats/\Domain.conf)

- 阅读剩余部分 -

Error: Plugin load for plugin 'decodeutfkeys' failed with return code......

Error: Plugin load for plugin 'decodeutfkeys' failed with return code: Error: Can't locate URI/Escape.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /usr/share/awstats/lib /usr/share/awstats/plugins) at (eval 3) line 1.

- 阅读剩余部分 -