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:
Example of the
In order to use the GeoIp2 library, you will need to download the
https://www.maxmind.com/en/geolite2/signup
Then go to the downloads page here:
https://www.maxmind.com/en/accounts/729461/geoip/downloads
Download the GZIP file.
Unpack the GZIP file and upload the
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
misc
directory. - Enter the following command
composer require geoip2/geoip2:~2.
- Composer will install the GeoIp2 library.
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 maxmind.com site:https://www.maxmind.com/en/geolite2/signup
Then go to the downloads page here:
https://www.maxmind.com/en/accounts/729461/geoip/downloads
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.