Following these instructions.
I would recommend using Ubuntu 18.04 LTS, specifically for certbot (which you will need for SSL). Certbot does not currently support 19.10.
Ensure that your system is up to date with
apt-get update
apt-get upgrade
Ensure essentials are on your machine
apt-get install build-essential
- PCRE: The instructions above specify the FTP link for PCRE is incorrect. The actual FTP link for PCRE that works is
ftp://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
- zLib
- Open SSL: Note that you can likely just run
./config
if you are on a Linux like system and the installer will figure it out. The NGINX instructions have you specify your architecture
Pull down NGINX with wget, mainline is fine.
The biggest thing to remember when choosing this option of installing nginx is Ubuntu/Debian package managers install their registered nginx (i.e. with apt-get install nginx
) usually to a different location than the one that the source instructions tell you. This means you can end up with two nginx installations. This has a few repurcussions:
- The yum/apt/apk installed nginx has finicky package management
- Installing from source with the source of the streaming plugin is the most reliable way to ensure which nginx knows where to look for the plugin
- If you are running SSL and pull certificates using Certbot, Certbot will attempt to use the installation of nginx located at
which nginx
- which will likely be a symlink to the package manager's installation. (Might be/usr/bin
, etc. when from source you can choose the installation location - might be/usr/local/bin
or/etc/local/nginx
) - This means you have to prefix your nginx