Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6047917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:24:18+00:00 2026-05-23T07:24:18+00:00

Is it possible to switch from Ruby 1.8.7 to 1.9.2 when restarting a Rails

  • 0

Is it possible to switch from Ruby 1.8.7 to 1.9.2 when restarting a Rails app that is deployed on Passenger? It should be possible to change PassengerRuby in httpd.conf and restarting Apache. I want to know how it can be done without restarting Apache every time.

More info: We have two different apps, one on Rails 2.3.8 and one on 3.0.5 with the same name, and want to switch between them for testing purposes.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:24:19+00:00Added an answer on May 23, 2026 at 7:24 am

    Yes you can switch which versions of ruby you use. Life is easy when you use rvm (http://rvm.beginrescueend.com/). Then you can install the passenger gem in different ruby environments, and when you do it in each environment, the passenger-install-apache2-module command will tell you what to put in the apache config file. For example, mine is now (mac osx – should be similar in other *nixes):

    ### system ruby and passenger
    #LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
    #PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-3.0.7
    #PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
    
    ### rvm gemset 1.8.7@rails2.3.11 ruby and passenger
    LoadModule passenger_module /Users/matt/.rvm/gems/ruby-1.8.7-p334@rails2.3.11/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
    PassengerRoot /Users/matt/.rvm/gems/ruby-1.8.7-p334@rails2.3.11/gems/passenger-3.0.7
    PassengerRuby /Users/matt/.rvm/wrappers/ruby-1.8.7-p334@rails2.3.11/ruby
    

    I can comment/uncomment the appropriate one and restart apache with the different version of ruby. This also works for ruby 1.9.2 and ruby enterprise edition too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is that possible to switch an Open Source Project license from GPL to LGPL
Is it possible from a keyboard shortcut to switch from the XCode editor window
Is it possible to switch from a TableLayout to an ExpandableListView? How? I tried
Is it possible to switch from a private filesystem to a public one in
Is it possible to switch from HiLo to GUID.comb? As far as I can
I am looking at how/if I should make the switch from svn to git.
Is it possible to switch from silent mode to ring mode (and vice versa)
Is it possible to switch off optimization of a specific function? A friend of
Possible Duplicate: Emacs, switch to previous window other-window advances me to the next window
Is this code possible? switch (rule) { case 'email' || 'valid_email': valid = this.validate_email(field);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.