The steps are simple.Įnable the correct plugin for geolocation. In order to enable geolocation in AWStats we need to configure the main configuration file for the site we are monitoring. However, this is, with these Perl dependencies installed we now have to configure AWStats to make use of the downloaded databases. ĭon’t feel bad, many Linux distributions are still relying on a package that the producer has deprecated for some time. MaxMind doesn’t seem to be maintaining this package since middle 2019. The following 81 package(s) will be affected (of 0 checked):ĭisclaimer. If we install the following package, all the dependencies will also be # pkg install p5-GeoIP2-2.006002 Install the Perl packages for AWStats understand GeoIPįor AWStats to interact with the databases we’ve just pulled from MaxMind we need to install some Perl software. With the databases in place it’s time to move on to the next step and install the necessary dependencies to enable geolocation in AWStats. Once that’s done it’s time to pull the databases from MaxMind. Grab your favorite editor and edit both lines, 8 and 9, and replace the capital string with the real information relative to your MaxMind’s account. Once this geoipupdate software is installed we need to configure it so we can use or user ID and license to pull those databases we want to use for # grep -n 'AccountID' /usr/local/etc/nfĪs it can be seen the Account ID sits on line 8 in the nf file and just below of it the license # grep -n 'LicenseKey' /usr/local/etc/nf The exact location of this configuration file for the geolocation in AWStats to work is sitting in the following # ls -al /usr/local/etc/nf Place the generated account key and license key You must register for a (free) MaxMind account The process will require 6 MiB more space. The following 1 package(s) will be affected (of 0 checked): The first piece of software to install is the ‘geoipupdate’ # pkg install geoipupdate-4.7.1 Once we’ve acquired those two elements, we can start with the installation of the software to pull those databases and configuring the system and AWStats to make use of them. Because of this the very first thing we need to do is to register to MaxMind and get a user ID as well as license number. Those free access databases are called GeoLite2. However, there’s still a free edition anyone can download with a registration to their site. To get that information one must pay a fee for accurate, very reliable data. Countries, cities and even ASN ( autonomous systems). MaxMind is a company that sells databases containing information relative to IPs and how those are related to specific geographical locations. You can use this tutorial from this very site. Use this link to get 100 $ credit at DigitalOcean and support hosting costs.Ī FreeBSD box with AWStats installed on it. This same setup can be built in DigitalOcean. To accomplish that enabling geolocation in AWStats is the way to go. Knowing the location of visitors is a matter of interest, for the sake of it or because you need to know who prefers whatever you’re selling on your site for example. On that piece a basic install of AWStats is shown, however, a nice and important functionality of AWStats is missing. Write(1, ".1599.66No3,16".A few weeks ago, a guide explaining how to install AWStats on FreeBSD was released here in. The newest file/date will also have a www version of the file, that www version of the files is alwarys removed the next time/day the tally run, and it only keept for the 1 day each months. But I would not know why some By the way I notice the only So, in other words: When looking at my servers the It likely is not a bug, but the way it works.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |