Skip to content

Instantly share code, notes, and snippets.

@skt-bford
Last active December 13, 2015 19:18
Show Gist options
  • Save skt-bford/4961851 to your computer and use it in GitHub Desktop.
Save skt-bford/4961851 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# requirements
yum -y install wget
# install passenger
gem install passenger --no-ri --no-rdoc
passenger-install-nginx-module
# copy init script for nginx
cd /usr/local/src
wget https://gist.github.com/skt-bford/4961811/raw/passenger-nginx.init.sh
mv passenger-nginx.init.sh /etc/init.d/nginx
chmod +x /etc/init.d/nginx
/sbin/chkconfig --levels 235 nginx on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment