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:

To install the GeoIP module issue the following at terminal:

That’s it, you’re done!