Thursday, October 18, 2012

服务器托管之路三-awstat

应用程序:

安装activexperl,awstat7.0,将awstat下的cgi-bin文件夹拷贝到c:\webserver文件夹下,将c:\webserver\cgi-bin做虚拟目录cgi-bin,新建或拷贝pk17s.conf的配置文件过去.geo-ip的安装.

1.安装 C:\> ppm install http://theoryx5.uwinnipeg.ca/ppms/Geo-IP.ppd 没有创建c:\program files\GeoIp\ 没关系.现在自己新建这个目录

2.解压

http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
http://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
里的几个dat文件到c:\program files\GeoIp\根目录下.

确认:

IIS -> Default Web Site -> Handler Map: +

request path:*.pl

Executable: C:\Perl\bin\perl.exe "%s" %s

name:Perl-pl

修改pk17s.conf

LoadPlugin="geoip GEOIP_STANDARD C:\Program Files\GeoIP\GeoIP.dat"
LoadPlugin="geoip_city_maxmind GEOIP_STANDARD C:\Program Files\GeoIP\GeoLiteCity.dat"
LoadPlugin="geoip_org_maxmind GEOIP_STANDARD C:\Program Files\GeoIP\GeoIPASNum.dat"

No comments: