D
D
DVamp1r32018-04-09 18:04:56
PHP
DVamp1r3, 2018-04-09 18:04:56

What is the php_geoip setting error?

Below is additional information
An example of the fact that the module is loaded, but there is no information

var_dump(geoip_database_info());
var_dump(geoip_db_avail());
var_dump(geoip_db_filename());

Code output
/private/var/www/ipinfo/models/GuestInfo.php:110:string 'GEO-106FREE 20180327 Build 1 Copyright (c) 2018 MaxMind Inc All Rights Reserved' (length=79)
/private/var/www/ipinfo/models/GuestInfo.php:111:null
/private/var/www/ipinfo/models/GuestInfo.php:112:null

Path to database, set in php.ini
geoip.custom_directory /usr/local/geoip/
Listing /usr/local/geoip
-rw-r--r--  1 root  wheel   1242574 Mar 27 15:17 GeoIP.dat
lrwxr-xr-x  1 root  wheel        32 Apr  9 17:38 GeoIPCity.dat -> /usr/local/geoip/GeoLiteCity.dat
-rw-r--r--  1 root  wheel  20539238 Mar 27 15:05 GeoLiteCity.dat

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question