For primary php, I've tried below steps:
1. # yum install php54-pecl-geoip
2. Edit '/etc/awstats/awstats.mysite.com.conf' and add 'LoadPlugin="geoip GEOIP_STANDARD"' end of it.
(it's default is 'LoadPlugin="geoip GEOIP_STANDARD /pathto/GeoIP.dat"' but I do not know what to get instead '/pathto/GeoIP.dat'.)
3. visit '
http://mysite.com/awstats/awstats.pl?config=mysite.com'
Error: Plugin load for plugin 'geoip' failed with return code: Error:
Can't locate Geo/IP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /home/kloxo/httpd/awstats/wwwroot/cgi-bin/lib /home/kloxo/httpd/awstats/wwwroot/cgi-bin/plugins) at (eval 2) line 1.
Can't locate Geo/IP/PurePerl.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /home/kloxo/httpd/awstats/wwwroot/cgi-bin/lib /home/kloxo/httpd/awstats/wwwroot/cgi-bin/plugins) at (eval 3) line 1.
Error: Need Perl module Geo::IP or Geo::IP::PurePerl
Setup ('/etc/awstats/awstats.mysite.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).