Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

How to install GeoIP module on Ubuntu for NGINX

Today we’ll be looking at how to install the GeoIP module on Ubuntu 16.04 LTS, 18.04 LTS and 19.04 for NGINX.

You may come across an error like the following while trying to compile/install Nginx from source:

./configure: error: the GeoIP module requires the GeoIP library

To install the GeoIP module issue the following at terminal:

sudo apt-get install libgeoip-dev

That’s it, you’re done!