By das-peter on
Change record status:
Published (View all published change records)
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:
- Enable this module as usual
- 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
- Using Composer:
- GeoIP - Legacy:
-
- Download from: https://github.com/maxmind/geoip-api-php
- Extract to [path_to_drupal]/sites/all/libraries/geoip-api-php
- Make sure you've a path like [path_to_drupal]/sites/all/libraries/geoip-api-php/src
- 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/ - Create the directory
path_to_drupal/sites/all/libraries/geoipand 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