Created
January 7, 2012 06:34
-
-
Save terut/1574005 to your computer and use it in GitHub Desktop.
The way to update nginx with passenger.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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