Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi There,
I have went through and installed all the required mods etc for Geoip but for some reason I have no idea when I try to enable the mod I am getting the error "No valid GeoIP database installed." even though I know it is installed because I get this info when I run # /usr/local/bin/geoiplookup -v 1.2.3
GeoIP Country Edition: GEO-106FREE 20110201 Build 1 Copyright (c) 2010 MaxMind Inc All Rights Reserved
Can anybody point me in the right direction why I might be getting this error?
Tks.
Comments
Comment #1
virtuali1151 CreditAttribution: virtuali1151 commentedI have them installed in the following dir:
/usr/local/share/GeoIP/GeoIP.dat and GeoLiteCity.dat
Comment #2
drewish CreditAttribution: drewish commentedYou sure the webserver can read from that path? It might be limited to files inside the doc root. You could use devel module to try running something like:
If the first line reports false that would indicate that the webserver either cannot open the file or the path is wrong. If the second line doesn't spew a bunch of crap that would definitely indicate that there's a problem.
Comment #3
bojanz CreditAttribution: bojanz at Centarro commented