geoip_country_name_by_name(): Required database not available at C:/xampp/apache/bin/GeoIP.dat

7k Views Asked by At

do you know why it's happens?

A PHP Error was encountered

Severity: Warning

Message: geoip_country_name_by_name(): Required database not available at C:/xampp/apache/bin/GeoIP.dat.

i just installing GeoIP

thanks for advance.

2

There are 2 best solutions below

1
On BEST ANSWER

You need to download the GeoIP database and move it to the path referenced in your error. Download here: http://dev.maxmind.com/geoip/legacy/install/country/

3
On

If it can help: I had the same problem but only with the PHP CLI, I add to force the lib directory setting to fix this warning. This is quite weird because with Apache the path is not set and it works correctly:

/etc/php/7.0/mods-available/geoip.ini:

[geopip]
geoip.custom_directory = /usr/share/GeoIP