The GeoIP City database file is not available at /usr/share/GeoIP/GeoIPCity.dat!

When I updated to 7.x-1.0-alpha4, the above error appeared.

I downloaded the GeoLite City database, but I am not allowed to upload files outside of my home directory on my shared server.

Comments

gashev’s picture

> The GeoIP City database file is not available at /usr/share/GeoIP/GeoIPCity.dat!

It's says that geoip extension installed, but GeoIPCity.dat does not exist to /usr/share/GeoIP folder. Ask your hosting provider about correct geoip settings.

roball’s picture

What gives

ls -l /usr/share/GeoIP

?

susgeek’s picture

There is no geoIP directory in the share folder. I don't have the authorisation to create it, or to write files.

Is there a way to save the dat file somewhere in my home directory where the module could find it?

susgeek’s picture

Category: support » feature
roball’s picture

Title: requirements problem » Status report prints "The GeoIP City database file is not available at /usr/share/GeoIP/GeoIPCity.dat!" error
Category: feature » support

This is not possible since the geoip PHP extension and its configuration is loaded when the webserver process is started. Later there is no way to "reload" the DB from another location. This is good for best speed.

If your provider has the geoip PHP extension installed but not properly configured he should really fix the configuration, otherwise enabling the extension would be useless.

gashev’s picture

Status: Active » Closed (works as designed)