Required DB not available (GeoIPCity)

Not sure if this is the right place, but been having some GeoIP install problems… I’ve followed a tutorial, but get a DB not found error… However, if I SSH into the dir, I can see the DB is there.

[root@bisi ~]# cd /usr/share/GeoIP/
[root@bisi GeoIP]# ls -l
total 39808
-rw-r--r--. 1 root root 19296331 Mar  3 10:14 GeoIPCity.dat
-rw-r--r--. 1 root root   795124 Mar  3 10:10 GeoIP.dat
-rw-r--r--. 1 root root  1362244 Jun  9  2014 GeoIP-initial.dat
-rw-r--r--. 1 root root 19296331 Mar  3 10:14 GeoLiteCity.dat

This is from html

    1. Warning: geoip_record_by_name(): Required database not available at /usr/share/GeoIP/GeoIPCity.dat. in /var/www/vhosts/server1.bisi.bid/bisi.bid/private/application/views/layout/index.html on line 19 

2. GEO-106FREE 20150303 Build 1 Copyright (c) 2015 MaxMind Inc All Rights Reserved94.99.81.160SAU

3. Warning: geoip_record_by_name(): Required database not available at /usr/share/GeoIP/GeoIPCity.dat. in /var/www/vhosts/server1.bisi.bid/bisi.bid/private/application/views/layout/index.html on line 30 

4. GEOIP_COUNTRY_EDITION: /usr/share/GeoIP/GeoIP.dat Available
GEOIP_REGION_EDITION_REV0: /usr/share/GeoIP/GeoIPRegion.dat 
GEOIP_CITY_EDITION_REV0: /usr/share/GeoIP/GeoIPCity.dat 
GEOIP_ORG_EDITION: /usr/share/GeoIP/GeoIPOrg.dat 
GEOIP_ISP_EDITION: /usr/share/GeoIP/GeoIPISP.dat 
GEOIP_CITY_EDITION_REV1: /usr/share/GeoIP/GeoIPCity.dat 
GEOIP_REGION_EDITION_REV1: /usr/share/GeoIP/GeoIPRegion.dat 
GEOIP_PROXY_EDITION: /usr/share/GeoIP/GeoIPProxy.dat 
GEOIP_ASNUM_EDITION: /usr/share/GeoIP/GeoIPASNum.dat 
GEOIP_NETSPEED_EDITION: /usr/share/GeoIP/GeoIPNetSpeed.dat 
GEOIP_DOMAIN_EDITION: /usr/share/GeoIP/GeoIPDomain.dat 

put this at the end of php.ini (wasnt sure whether to put ; or not, so put both!)

    extension=geoip.so
    ;extension=geoip.so

Hope someone can point us in the right direction here. Worst case scenario, we’ll have to pay someone to install it :sob:

Think I got it… thought it gives eu cities… now having problems getting asian cities =/
anyway seems I need to populate the city.dat?

# sudo mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat

Hi…
Good To know you got it…but what are you working

What am I working?
It’s a ip to address look up… GeoIP

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.