Install php-geoip by entering the following commands in the terminal:
sudo apt update sudo apt install php-geoip
Description:
GeoIP module for PHP
This PHP module allows you to find the location of an IP address - City, State, Country, Longitude, Latitude, and other information as all, such as ISP and connection type. . For more info, please visit Maxmind's website: http://www.maxmind.com/
Homepage: http://pecl.php.net/package/geoip/
Version: 1.1.1-1build2
Section: universe/php