Installing the GeoIp2 library

The Members map v2.1 add-on has an option to use the GeoIp2 library which is installed on your server. This GeoIp2 library allows reading the GeoLite2 database. Once installed you will be able to add an unlimited number of markers to your Members map add-on for free.

These instructions have been tested on a web host which has cPanel.

Follow these steps:
  1. Create a directory called misc in your public_html directory.
  2. Log into your server using SSH. Important, do not log into SSH as root, log in as cPanel user.
  3. Navigate to the misc 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.


In order to use the GeoIp2 library, you will need to download the GeoLite2-City.mmdb database. First step is to register at the site:

Then go to the downloads page here:

Download the GZIP file.


Unpack the GZIP file and upload the GeoLite2-City.mmdb file to your /misc directory on your server. Last step is to update the Members map v2.1 Options page with the paths to the GeoIp2 autoloader.php and the path to the GeoLite2-City.mmdb file.