Report this

What is the reason for this report?

How can I update NGINX?

Posted on June 5, 2014

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 :/



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.

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>

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.

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.