Workaround to use MaxMind GeoIP2-Lite-City (free version) with PHP

ITGabs

Well-Known Member
Jul 30, 2013
81
0
6
cPanel Access Level
Root Administrator
Hi

I am having a lot of problems to make this work on a cpanel server
so I am actually creating different questions.

MaxMind have many APIs to work with but almost everything need Composer and since it's free there is a big lack of support, install instructions and almost 0 about installing in cPanel

http://forums.cpanel.net/f5/installing-composer-cpanel-suggestions-371381.html#post1498561

I tried to install the libraries without composer but I am stuck with autoconf too

http://forums.cpanel.net/f5/how-can...on-2-63-5-2-65-higher-371391.html#post1498581

after reading a lot and looking some nice tools like geocoder https://github.com/geocoder-php/Geocoder and more complications, I decided just to keep thing simple and just get GeoLite2-City.mmdb file with all the country/city information free and just use the C API to search and read that db file and just port/call part of the code from php but I need to find a workaround to install that C library on Cpanel

https://github.com/maxmind/libmaxminddb

Code:
Installing from the Git Repository
Our public git repository is hosted on GitHub at https://github.com/maxmind/libmaxminddb

You can clone this repository and build it by running:

$ git clone https://github.com/maxmind/libmaxminddb
$ ./bootstrap
$ ./configure
$ make check
 

ITGabs

Well-Known Member
Jul 30, 2013
81
0
6
cPanel Access Level
Root Administrator
Hi Infopro, because is more easy to handle three different things as "Cpanel and PHP Composer", "Cpanel autoconfig outdated" and "GeoIP2-Lite-City" one big post with many question is more complex to follow, and probably in that way should be easy for Googling in the future