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

Advertisement

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

Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement