Fork me on GitHub
Donation
Love RVM? A donation would help justify to my family why I spend so much time working on Open Source projects like RVM.
Recommend
If you like my work with RVM, please recommend me *with a comment as to why you recommend me* on Working With Rails – Thank You!
IRC
I am 'wayneeseguin' in #rvm on irc.freenode.net If I do not respond right away, leave a message and I'll respond or leave you a memo when I am around.
Sponsors

Blue Box Group, LLC Nuxos Group

∴ rvm help # Documentation Index

Using RVM rubies with Passenger

RVM will allow you to use any of it's MRI/YARV rubies with passenger very easily.

Passenger with RVM

Select a Passenger Ruby and Generate Wrapper Scripts

Run RVM using your desired Ruby interpreter, and pass the '--passenger' option. This will generate wrapper scripts in RVM's bin directory (see Notes below). These wrapper scripts ensure environment variables such as GEM_HOME and GEM_PATH are set correctly for applications run by passenger. E.g:

rvm ree --passenger

Alternatively, you can use the rvm wrapper command directly:

rvm wrapper ree@ninjas passenger

Install Passenger

rvm ree
gem install passenger
rvmsudo passenger-install-nginx-module

Or if you are forced to use the tomahawk,

rvmsudo passenger-install-apache2-module

Configure the Web Server

For Nginx users, replace the passenger_ruby line with:

passenger_ruby /home/wayne/.rvm/bin/passenger_ruby;

For apache users, use:

PassengerRuby /home/wayne/.rvm/bin/passenger_ruby

Please note that if you installed rvm as root / are using a system wide ruby, instead of using /home/wayne/.rvm/bin/passenger_ruby as in the above examples, you'll instead need to use /usr/local/bin/passenger_ruby.

Notes

Troubleshooting

FAQ

RVM Documentation Index