Skip to content

Instantly share code, notes, and snippets.

@pmamediagroup
Created February 15, 2011 20:51
Show Gist options
  • Save pmamediagroup/828218 to your computer and use it in GitHub Desktop.
Save pmamediagroup/828218 to your computer and use it in GitHub Desktop.
Updating Nginx
The first step is to make sure you have ruby installed. Then gem install passenger
If you're upgrading mothership, download the Nginx-upload-module. Otherwise, just ignore all instructions regarding it.
http://www.grid.net.ru/nginx/upload.en.html (scroll almost to the bottom or search for Download)
extract that into whatever directory you want
download and extract Nginx source http://nginx.org/
run the passenger install script (passenger-install-nginx-module)
tell passenger you want to compile nginx from source. You'll want to do the following:
- tell it to install nginx in /opt/nginx
- tell it to install the nginx-upload-module (as well as where the source for that is)
I think that's about it. Be sure not to lose the current config files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment