Page 1 of 1

PHP GeoIP

Posted: Thu Jul 04, 2019 7:04 pm
by racerlupine
Can someone tell me whether the GeoIP plugin for PHP in enabled on sh.sonic.net?

thanks

RACER

Re: PHP GeoIP

Posted: Fri Jul 05, 2019 5:03 pm
by drew.phillips
Hi RACER,

The PHP GeoIP extension is not installed on the shell server. Instead, I would suggest using https://github.com/maxmind/GeoIP2-php and a local copy of the GeoIP database that you acquire (if not the API).

Re: PHP GeoIP

Posted: Fri Jul 05, 2019 7:42 pm
by racerlupine
Drew,

Thanks for the reply.

The PHP GeoIP extension is not installed on the shell server.


I suspected as much. The only reason I asked is, I found some GeoLite2 database files in /usr/share/GeoIP. Can I point my maxmind functions to them? They appear to be pretty current.

I'm not sure I need to mess with the API. But that's just it, I'm not sure...

thanks

RACER

Re: PHP GeoIP

Posted: Wed Jul 10, 2019 1:23 pm
by drew.phillips
It looks like those are updated and are copies of the new free geolite2 databases found at https://dev.maxmind.com/geoip/geoip2/ge ... #Downloads so it looks like you can point your functions at those, and barring any major changes, they should remain at that location and available for a long time.