Monday, 1 July 2013

Install latest version of Nginx

$ sudo -s
$ echo "deb$nginx/ubuntu lucid main" > /etc/apt/sources.list.d/nginx-$nginx-lucid.list
$ apt-key adv --keyserver --recv-keys C300EE8C
$ apt-get update

At this step you might get an error in upgrading
"W: GPG error: lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62"

So try this
$ wget
$ cat nginx_signing.key | sudo apt-key add -
$ apt-get update

Now Install
$apt-get install nginx

$/usr/sbin/nginx -V