Running Ubuntu 11.04 with nginx 0.8.4 how do I upgrade to stable (1.2.0) without screwing my whole setup (multiple sites + varnish + php-fpm + memcache)?
I searched a little & found out that the natty version is 0.8.4 and cannot be updated to 1.2.0 by Robert Arkenin's command
If you get an error about add-apt-repository not existing, you can try this
Note The 3rd and 4th line is one command only
If you are getting this error
Something to learn
Actually if you see in the error this part "ppa.launchpad.net/nginx//ubuntu/dists/" should actually be "ppa.launchpad.net/nginx/stable/ubuntu/dists/" . that is the error
here's a guide to upgrading / installing to the latest stable or latest development version of nginx without having to compile from sources: http://usefulmix.com/install-upgrade-to-latest-nginx-without-compiling-from-source/
Add official nginx source to the sources list by appending the following to the end of /etc/apt/sources.list
Then run the following commands:
I update the nginx from 0.7 to 1.7 in ubuntu 10.10 by following the guide. Hope this will help others.