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

StackOverflow https://stackoverflow.com/questions/20438204

  •  30-08-2022
  •  | 
  •  

Pregunta

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.

¿Fue útil?

Solución

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/

Otros consejos

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
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top