Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by ITGabs, Nov 6, 2013.

  1. ITGabs

    ITGabs Well-Known Member

    Joined:
    Jul 30, 2013
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    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-i-update-autoconf-latest-version-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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,480
    Likes Received:
    421
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Why three different threads?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ITGabs

    ITGabs Well-Known Member

    Joined:
    Jul 30, 2013
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Similar Threads - Workaround MaxMind GeoIP2
  1. deadlock
    Replies:
    7
    Views:
    483

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice