Awstats

Awstats depends on libgeoip and perl-geoip. Read arch awstats nginx and luxagraf awstats nginx for more information on how to setup awstats.

$ prt-get depinst awstats

Above should install geoip-database and perl-geoip. Edit awstats configuration, exp /etc/awstats/awstats.machine.example.org;

LogFile="/var/log/nginx/machine_access.log"

LogFormat="%host - %host_r %time1 %methodurl %code %bytesd %refererquot %uaquot %otherquot"

SiteDomain="machine.example.org"

HostAliases="machine.example.org 127.0.0.1 localhost"

LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"

LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/share/GeoIP/GeoLiteCity.dat"

Change nginx logformat;


Jawstats

Jawstats fork works fine with PHP 7+, code will change and will use MVC small framework, for more information check README.md.

Update