Last active
August 29, 2015 14:20
-
-
Save geekingreen/f61a1a65801e03e96ac5 to your computer and use it in GitHub Desktop.
Install nginx + passenger from source
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
| #!/bin/bash | |
| # Download nginx src | |
| # cd into nginx src dir | |
| sudo apt-get install ruby ruby-dev libcurl4-openssl-dev | |
| sudo gem install passenger | |
| PASSENGER_NGINX_DIR=`passenger-config --root`/ext/nginx | |
| sudo ./configure --prefix=/etc/nginx\ | |
| --with-http_ssl_module \ | |
| --with-http_gzip_static_module \ | |
| --add-module=$PASSENGER_NGINX_DIR \ | |
| --with-http_sub_module | |
| sudo make -j4 | |
| sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment