To confirm the GeoIP plugins are in place, check the very bottom of the AWStats page after you run the AWStats scripts with the GeoIP settings in place. All good? Great! Now rerun your AW Stats command. dat files match the names of the files that are actually in /usr/share/GeoIP/.
![awstats unique visitor threshold awstats unique visitor threshold](https://a.fsdn.com/con/app/proj/awstats/screenshots/screen_shot_960x540.png)
LoadPlugin="geoip_org_maxmind GEOIP_STANDARD /usr/share/GeoIP/GeoIPASNum.dat" LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/share/GeoIP/GeoIPCity.dat" Now find the line that has GEOIP_STANDARD and add this or edit that line to account for the three new databases: LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat" First, find the DNSLookup line and disable it: DNSLookup=0 Sudo mv ~/ /usr/share/GeoIP/Īnd decompress them: sudo gzip -d /usr/share/GeoIP/ For help understanding your AWStats results, please refer to the official AWStats website. Click the View icon next to the domain name for which you wish to view stats. In the Metrics section, click the AWStats icon. Move them into the local /usr/share/GeoIP/ directory: sudo mv ~/ /usr/share/GeoIP/ To access AWStats for your site: Log in to cPanel. Okay, that went well? Now get the databases from MaxMind: wget
#AWSTATS UNIQUE VISITOR THRESHOLD CODE#
Okay, if that is done & works, move onto the CPAN component that will bridge the Perl AWStats code with GeoIP functions: sudo cpan Geo::IP::PurePerl Geo::IP Then do the following in your GeoIP-1.5.1 directory: autoreconf -force -install
![awstats unique visitor threshold awstats unique visitor threshold](https://dev.marquest.com/wp-content/uploads/2019/01/MQblog_Aruba_pic1_v2-1024x283.png)
#AWSTATS UNIQUE VISITOR THRESHOLD INSTALL#
In some cases, I have had to run dh-autoreconf as described here: sudo aptitude install dh-autoreconf Then do “the usual” config & make routine. In a few cases I have had to run libtoolize to get the configuration to work: libtoolize -f Assuming it is still version 1.5.1, go into the directory: cd.
![awstats unique visitor threshold awstats unique visitor threshold](https://futureiplabs.info/wp-content/uploads/2019/11/10-best-portable-network-scanner-tools-to-use_2-5.jpg)
It should be GeoIP-1.5.1` but check what it expands to if the version changed. Remember, the process can be complex if you are not comfortable with doing compiling on your own packages, but this is how I do it under Ubuntu 12.04 LTS.įirst, get the GeoIP tool from MaxMind: wget Įxtract the archive: tar -xvzf But sharing my method of using GeoIP lookups just in case. If you don’t care about adding more data to IPs, you don’t have to do anything else but disable DNS lookups. But then to resolve IP addresses to something more than just numbers, you need GeoIP setup. Basically you will go into your AWStats config file for -which should be -if I recall the formatting scheme correctly. A much better strategy that I use on all servers I setup is to use GeoIP lookups instead of domain name lookups. The line that should be added into all these files looks like: LoadPlugin="geoip GEOIP_STANDARD /pathto/GeoIP.The problem is that DNS lookups in AWStats is inherently inefficient & not really that great. You will need to edit the files that were already configured by Plesk for every domain which can be found in /usr/local/psa/etc/awstats/*. The plugin needs to be enabled in the main AWStats configuration files: /etc/awstats/nf You can get all the necessary installation instructions and downloadable plugin files (for example, "Geo::IP::PurePerl Module" library) from here: However, the Perl modules necessary for the plugin to work (Geo::IP or Geo::IP::PurePerl) must be installed. Usually, geoip.pm plugin comes with AWStats package.
![awstats unique visitor threshold awstats unique visitor threshold](https://assets.hongkiat.com/uploads/top-14-free-web-statistics-tools/statcounter.jpg)
# This plugin reduces AWStats speed of 8% ! # Perl Geo::IPfree module, database less up to date). # from Maxmind, database more up to date) or the GeoIPfree plugin (need # Note: You must choose between using this plugin (need Perl Geo::IP module # This plugin is useless for intranet only log files. # Country chart is built from an Internet IP-Country database. # Perl modules required: Geo::IP or Geo::IP::PurePerl (from Maxmind) Information about this plugin from /etc/awstats/nf: # Plugin: GeoIP To enable this feature, the GeoIP plugin will need to be configured. Please take a moment to review the Statement of Support. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by (mt) Media Temple.