Skip to content

Instantly share code, notes, and snippets.

@geekingreen
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save geekingreen/f61a1a65801e03e96ac5 to your computer and use it in GitHub Desktop.

Select an option

Save geekingreen/f61a1a65801e03e96ac5 to your computer and use it in GitHub Desktop.
Install nginx + passenger from source
#!/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