Is it possible to change Passenger Ruby version without recompiling?

Zequez picture Zequez · Nov 12, 2011 · Viewed 11k times · Source

I tried changing the default ruby command to 1.9.2 but Passenger keeps running 1.8.7

Is Passenger compiled with Ruby embedded?

Answer

sosborn picture sosborn · Nov 12, 2011

To set the Ruby version add this line to your vhost file:

PassengerRuby /path/to/the/ruby/version/you/want/to/use