Passenger installation with nginx fails

mmr picture mmr · Feb 9, 2010 · Viewed 12.5k times · Source

I'm running an ubuntu 9.10 server on an amd-64 platform. Everything's pretty much standard, and I've got Sinatra 0.94 running on a ruby 1.8 installation. I want to install passenger in order to easily configure ssl.

The problem is, it fails to find the installer.

I run

sudo gem install passenger

or

sudo gem install -r passenger

and then the next line,

passenger-install-nginx-module

or

passenger-install-apache2-module

both fail because the path isn't found.

Is there something I'm forgetting here? Shouldn't it just work, straight up, once the gem is installed?

Answer

Rollo Tomazzi picture Rollo Tomazzi · Mar 16, 2011

A bit late for an answer I guess, but actually, the correct way of running the Phusion Passenger installer for nginx, when using RVM, is to use rvmsudo as in:

rvmsudo passenger-install-nginx-module

Credits go to this blog post,