Installing the latest stable Nginx 0.7.6 regardless of the Nginx 0.6.3 by mod_rails defaults
It's really cool, phusion.nl make my life a little bit easier, nginx with mod_rails can be installed in 2 steps:
gem install passenger passenger-install-nginx-moduleNot neccessary known about configure, make, install and other. Also you can use deb package in Ubuntu server case. But, what's happen, guys, I want a latest nginx stable instead out-of-date 0.6 branch. So, I show you how I use two of version nginx (stable 0.6.3 by modrails defaults and latest 0.7.6). You can use one of them on the yours server.
mkdir ~/temp && cd ~/temp wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.9.tar.gz tar xzf ./pcre-7.9.tar.gz wget http://sysoev.ru/nginx/nginx-0.7.60.tar.gz tar xzvf ./nginx-0.7.60.tar.gz cd ~/temp/nginx-0.7.60 ./configure --add-module=/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.3/ext/nginx --with-pcre=~/temp/pcre-7.9 --prefix=/opt/nginx076 make sudo make install sudo cp /etc/init.d/nginx /etc/init.d/nginx076 sudo sed -i 's,/opt/nginx,/opt/nginx076,g' /etc/init.d/nginx076 sudo /etc/init.d/nginx076 start
That's all. You have a choise to use either aby of version of Nginx webserver.
1 comment
Comments
-
You can just download your nginx of choice and then use the passener installer and pass it the source directory to build the nginx version that you want. I did this to install nginx 0.8