Report this

What is the reason for this report?

how to install the latest nginx stable 1.10.2

Posted on November 8, 2016

Hello, just created a new droplet on ubuntu 16.04 and installed nginx. but when i checked nginx version is 1.10.1 now i tried to update and upgrade everything but nginx version stays the same. how can i update my nginx to the latest stable version which is 1.10.2?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

This is because you install from repository (using apt-get). Packages are repositories are usually not updated ‘insta’ and you need to wait little bit before installing it using apt-get.

When I install nginx on new Droplet (Ubuntu 16.04) and run nginx -v:

nginx version: nginx/1.10.0 (Ubuntu)

To get around this you need to install from source. This is not straightforward as installing with apt-get but I think it’s not very hard. How To Install Nginx From Source (nginx.com). Building From Source (nginx.org). There is no DO tutorial for Ubuntu. I found old one for CentOS which you can read at How To Compile Nginx from Source on a CentOS 6.4 x64 VPS.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.