Phusion Passenger is throwing errors after upgrading Ruby and Rails using rvm

前端 未结 1 1114
我在风中等你
我在风中等你 2020-12-31 08:04

I recently upgraded my Rails setup to 3.1.3 and I\'m having issues with Phusion Passenger loading an older app on this server. I got everything running on a testapp but I\'m

1条回答
  •  醉梦人生
    2020-12-31 08:37

    You're not using the RVM ruby in the Apache config, in your apache conf your pointing to the old system versions

     LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
     PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11
     PassengerRuby /usr/bin/ruby1.8
    

    You need to use the 1.9.3 that RVM has installed, easiest way is to install the passenger gem again and look at the output, when it's compiled it'll give you the correct conf, mine looks something like:

    LoadModule passenger_module /Users/admin/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/ext/apache2/mod_passenger.so
    PassengerRoot /Users/admin/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9
    PassengerRuby /Users/admin/.rvm/wrappers/ruby-1.9.3-p0/ruby
    

    0 讨论(0)
提交回复
热议问题