DebianでAWStatsのGeoIPプラグインを有効にする手順
- apt-get install geoip-bin libgeoip-dev
- perl – MCPAN -eshell, install Geo::IP
- crontabに 0 0 6 * * curl -s http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz | zcat > /usr/share/GeoIP/GeoIP.dat
- AWStatsのconfで LoadPlugin=“geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat”
追加でGeoLiteCityをインストールするもよし。
この場合、GeoLiteCity.dat.gzをダウンロードして展開し、/usr/share/GeoIP/GeoIPCity.datに保存。
AWStatsのconfでLoadPlugin=“geoip_city_maxmind GEOIP_STANDARD /usr/share/GeoIP/GeoIPCity.dat”
| | 2006-12-08 00:08