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:
- Create a directory called
misc in your public_html directory.
- Log into your server using SSH. Important, do not log into SSH as root, log in as cPanel user.
- Navigate to the
- Enter the following command
composer require geoip2/geoip2:~2.
- Composer will install the GeoIp2 library.
A new directory called
contains the files needed to use GeoIp2 library.
Example of the
In order to use the GeoIp2 library, you will need to download the
database. First step is to register at the maxmind.com site:
Then go to the downloads page here:
Download the GZIP file.
Unpack the GZIP file and upload the
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