AwStat

AwStat

 
Error: Plugin init for plugin 'geoip_city_maxmind' failed with return code: Error opening /usr/local/share/GeoIP/GeoLiteCity.dat at (eval 18) line 4973, <DATA> line 717. (A module required by plugin might be missing). 

Setup ('/usr/local/www/apache22/data/awstats/cgi-bin/awstats.test.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

cd /usr/ports/net/GeoIP
make install clean 

cd /usr/local/bin
редактируем geoipupdate.sh

#!/bin/sh

# You can set the following environment variables:
#
# GEOIP_DB_SERVER: The default download server is geolite.maxmind.com
# GEOIP_FETCH_CITY: If set (to anything), download the GeoLite City DB
# GEOIP_FETCH_ASN: If set, download the GeoIP ASN DB

GEOIP_DB_SERVER=${GEOIP_DB_SERVER:=geolite.maxmind.com}
-GEOIP_FETCH_CITY=${GEOIP_FETCH_CITY:=}
-GEOIP_FETCH_ASN=${GEOIP_FETCH_ASN:=}
+GEOIP_FETCH_CITY=${GEOIP_FETCH_CITY:=anything} 
+GEOIP_FETCH_ASN=${GEOIP_FETCH_ASN:=1}

 

 
И качаем базы
Запускаем
/usr/local/bin/geoipupdate.sh