NGINX is the best web server for almost everything. It can handle massive web traffic while consuming fewer hardware resources. By default, you can install NGINX on Ubuntu with command apt-get install nginx, but this will not install the latest version of NGINX.


So, How to Install Latest Stable Version of NGINX?

To always install the latest version of NGINX in Ubuntu, make sure that it is installed from PPA Repository. It will always fetch the new updates while entering the command apt-get update.

Install Latest Stable Version of NGINX in Ubuntu

Now I will demonstrate how to install the latest version of NGINX in 3 steps.

Step #1. Install Dependencies

sudo apt-get install python-software-properties

Step #2. Add Stable NGINX Repository

sudo add-apt-repository ppa:nginx/stable

If it asks for signing key then allow it with Y (Yes) option.

Step #3. Install NGINX

First lets hit the update servers first to fetch the updates and latest security patches.

sudo apt-get update

Then install NGINX.

sudo apt-get install nginx

It will install latest available stable NGINX.

Published by AtulHost

Hi, I'm Atul Kumar Pandey, an entrepreneur. I build atulhost to with an objective of sharing fresh, honest, and helpful contents. From case studies to comprehensive guides it's all here!

Leave a comment

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