• During registration, a specific email will be required: .
    Do not create multi-accounts, or you will be blocked!
    For more information about rules, limits, and more, visit Support.

How to install the MaxMind GeoIp2 library

Admin

Administrator
The GeoIp2 library allows reading the GeoLite2 database located on your server and you can lookup as many IP addresses as you like. The GeoIp2 library is free and is easy to install.

Installation instructions
  1. Create a directory called maxmind in your /home/username directory.
  2. Log into your server using SSH, log in as a cPanel user or equivalent (do not log in as root). Or if using cPanel go to the Terminal.
  3. Navigate to the /home/username/maxmind directory.
  4. Enter the following command composer require geoip2/geoip2:~2.
  5. Composer will install the GeoIp2 library.
A new directory called vendor contains the files needed to use GeoIp2 library.

Example of the vendor directory.
vendor directory.jpg
You need to register on the https://www.maxmind.com/ web site. Click the Sign in link and then Register.
Manually downloading the database:
In order to use the GeoIp2 library, you will need to download the GeoLite2-City.mmdb database.
Go to Download files:
Go to Download files.jpg
Download the Download GZIP file
Download the Download GZIP file.png
Unpack the GZIP file and upload the GeoLite2-City.mmdb file to your /home/username/misc directory on your server. Last step is to update the add-ons options page with the path to the autoload.php and GeoLite2-City.mmdb files.
Using the Maxmind updater add-on.

Go to the https://www.maxmind.com/ web site and click the Manage license keys link.
pic001.jpg
Create a license key.
 
Back
Top