Jump to content


Photo
* * * * * 1 votes

Upgrade Nginx to Latest Stable Release Ubuntu 12.04

nginx ubuntu 12.04 upgrade nginx on ubuntu 12.03 nginx 1.2.7 ubuntu 12.04 ubuntu nginx latest install nginx stable on ubuntu 12.04 keep nginx updated ubuntu

  • Please log in to reply
2 replies to this topic

#1 Administrator

Administrator

    Dev Partner

  • Lead Developer
  • 911 posts
  • 572 Thanks
  • Gender:Male
  • Location:New York
  • Interests:Everything code...

Posted 14 March 2013 - 09:51 PM

The Ubuntu repository is excruciating slow at adding updated software and no more is this evident with Nginx which is your servers life blood. At the time of this posting Nginx 1.1.9 is still the release version for Ubuntu 12.04 and there have been 8 stable releases with tons of bug fixes, new features and performance enhancements since. What they are waiting for is beyond me as there are and cannot be any compatibility issues with Nginx and any other Ubuntu software, its not that kind of webserver, its standalone and will work on any OS no matter the version there are no compatibility issues.

 

Extensive changelog

http://nginx.org/en/CHANGES-1.2

 

So if you want the best of Nginx update to the latest 1.2.7 stable at the time of this posting, with only a few commands in your servers shell. This setup will also upgrade to the latest stable when you update the server as well.

 

sudo nano /etc/apt/sources.list

 

Add the following in the file:

# Nginx upgrades

deb http://nginx.org/packages/ubuntu/ precise nginx
deb-src http://nginx.org/packages/ubuntu/ precise nginx

 

Now remove the old version on your server:

sudo apt-get clean

sudo apt-get remove nginx-*

 

Get the signing key

wget http://nginx.org/packages/keys/nginx_signing.key

cat nginx_signing.key | sudo apt-key add -

 

And install the latest stable release, hit enter for the default which is to keep your nginx.conf and not install a new one.

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install nginx

 

This will remove the old version but keep all your config and vhost files intact, install the latest stable release all without a seconds downtime

 

Now restart nginx

sudo service nginx restart

 

Enjoy!


  • 0

#2 classyyy

classyyy

    Clients

  • Clients
  • 26 posts
  • 2 Thanks
  • Gender:Male

Posted 15 March 2013 - 01:40 AM

thats only for the dedicated and the vps ones i assume?


  • 0

#3 Administrator

Administrator

    Dev Partner

  • Lead Developer
  • 911 posts
  • 572 Thanks
  • Gender:Male
  • Location:New York
  • Interests:Everything code...

Posted 15 March 2013 - 04:08 PM

This is for anyone who runs a dedicated or VPS server.

 

This can be used for any Ubuntu release by the way just replace precise in the source.list with your OS

 

IE

lucid
oneiric
quantal


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users