Skip to content

Instantly share code, notes, and snippets.

@terut
Created January 7, 2012 06:34
Show Gist options
  • Save terut/1574005 to your computer and use it in GitHub Desktop.
Save terut/1574005 to your computer and use it in GitHub Desktop.
The way to update nginx with passenger.
# check passenger.
$ gem list | grep passenger
# if it is missing, install.
$ gem install passenger
# download new version nginx.
$ wget http://nginx.org/download/nginx-1.0.11.tar.gz
$ tar -zxf nginx-1.0.11.tar.gz
# Now(at 2012/01/07), passenger-install-nginx-module has bug wiht pcre install. So, you download pcre package and must configure options.
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.gz
$ tar -zxf pcre-8.21.tar.gz
# if you wanna use syslog, add patch.(This is optional.)
$ git clone git://github.com/yaoweibin/nginx_syslog_patch.git
$ cd nginx-1.0.11
$ patch -p1 < ../nginx_syslog_patch/syslog_1.0.6.patch
$ passenger-install-nginx-module
# インストールの注意事項
# 2. No: I want to customize my Nginx installation. (for terut users)を選択
# Extra arguments to pass to configure script: --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module --with-pcre=/home/terut/src/pcre-8.21 --add-module=/home/terut/src/nginx_syslog_patch を指定(sslはすでに指定されている)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment