Question

How can I update NGINX?

Hello, i’m using a droplet created with Ghost, and i want to update my NGINX. this site says its an outdated version.

http://sitecheck.sucuri.net/results/blog.herebecoders.com/

I tryied sudo apt-get upgrade nginx but it didnt work :/


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

When you upgrade a package from outside of the official repositories, there’s always potential for breakage. The reason why stable releases of Ubuntu don’t continue to add new upstream versions is to stay with a well known and tested set of packages that work together. That said, I don’t see any reason that a new Nginx will break Ghost. <br> <br>The great thing about DigitalOcean is that you can spin up a droplet quickly to test something and then destroy it. Since you’re only changed per hour, it’s very cheap to test things before you do it to your production server. I just spun up a Ghost droplet and added that PPA. It reinstalled the default, Nginx config which took precedent over the Ghost config. So I had to remove it: <br> <br><pre> <br>sudo rm /etc/nginx/sites-enabled/default <br>sudo service nginx restart <br></pre> <br> <br>And the Ghost blog was up and running.

If i upgrade nginx do you think something might stop working? <br> <br>I changed nothing in the main configuration of it.

That site seems to just check the major version based off the header. The Ghost droplet uses Ubuntu 12.04 which is a Long Term Service release. This means that they backport security patches. You can see the full changelog here: <br> <br>http://changelogs.ubuntu.com/changelogs/pool/universe/n/nginx/nginx_1.1.19-1ubuntu0.6/changelog <br> <br>If you really want to update, you can add the Nginx PPA that provides newer versions of the package for Ubuntu: <br> <br>https://launchpad.net/~nginx/+archive/stable <br> <br>Run: <br> <br><pre> <br>sudo apt-get install python-software-properties <br>sudo add-apt-repository ppa:nginx/stable <br>sudo apt-get update <br>sudo apt-get upgrade <br></pre>