Linux posts
Create a Shell Script to Install NGINX from Source On Ubuntu

Create a Shell Script to Install NGINX from Source On Ubuntu

Jan 22 2018 — Why would you want to install NGINX from source code rather than a pre-built package? The most important reason is that the libraries which NGINX depends on (PCRE, zlib, OpenSSL) are part of the pre-built package, and building from source allows you to use the latest versions which may contain vital security patches. This post explains in detail how to install NGINX from source on Ubuntu, producing a .deb package which also allows you to easily uninstall the same instance of NGINX.