The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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...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
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,460
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Why three different threads?
     
  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
     
Loading...
Similar Threads - Workaround MaxMind GeoIP2
  1. cPanelChrisD
    Replies:
    32
    Views:
    4,266

Share This Page