By msoares2603
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.