Install GeoIP PHP Module in Ubuntu

To install GeoIP php module in Ubuntu, run

apt install php-geoip

To enable module, run

phpenmod geoip

You can see the PHP module with command php -m

root@ip-172-31-26-233:~# php -m | grep geoip
geoip
root@ip-172-31-26-233:~# 

Also it will be listed in phpinfo page.

geoip

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *