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

virtuali1151’s picture

I have them installed in the following dir:

/usr/local/share/GeoIP/GeoIP.dat and GeoLiteCity.dat

drewish’s picture

You 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:

$path = 'sites/all/libraries/geoip/GeoIP.dat';
dvm(file_exists($path));
dvm(file_get_contents($path));

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.

bojanz’s picture

Issue summary: View changes
Status: Active » Closed (outdated)