Change record status: 
Project: 
Introduced in branch: 
7.x-2.x
Description: 

Module completely overhauled to introduce support for Maxmind GeoIP2 databases.
The way to install the module has changed:

  1. Enable this module as usual
  2. Install one of the Maxmind php APIs:
    GeoIP2:
    • Using Composer:
      Install the library using composer in [path_to_drupal]/sites/all/libraries/GeoIP2-php
      *nix Commands:
      mkdir [path_to_drupal]/sites/all/libraries/GeoIP2-php
      cd [path_to_drupal]/sites/all/libraries/GeoIP2-php
      curl -sS https://getcomposer.org/installer | php
      php composer.phar require geoip2/geoip2:~2.0
    • Using phar package:
      Download the latest phar package:
      Place the file geoip2.phar here:
      sites/all/libraries/GeoIP2-phar/geoip2.phar
  3. GeoIP - Legacy:
    1. Download from: https://github.com/maxmind/geoip-api-php
    2. Extract to [path_to_drupal]/sites/all/libraries/geoip-api-php
    3. Make sure you've a path like [path_to_drupal]/sites/all/libraries/geoip-api-php/src
  4. Download one of the GeoLite database files (matching the API):
    GeoIP2: http://dev.maxmind.com/geoip/geoip2/geolite2/#Downloads
    Legacy: http://dev.maxmind.com/geoip/legacy/downloadable/
  5. Create the directory path_to_drupal/sites/all/libraries/geoip and extract the database
    file into this directory.
    You can use other locations too e.g. to share a database with varnish or
    other tools - to do so you can configure the path to the database to use in
    the module configuration (admin/config/system/geoip).
Impacts: 
Site builders, administrators, editors
Module developers