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 9224513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:20:25+00:00 2026-06-18T04:20:25+00:00

I have two different rails websites buid on ruby 1.8.x and ruby 1.9.11 respectively.

  • 0

I have two different rails websites buid on ruby 1.8.x and ruby 1.9.11 respectively. I already have configured my /etc/httpd/conf/http.conf with the following lines of code:

LoadModule passenger_module /opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/gems/1.8/gems/passenger-3.0.18/ext/apache2/mod_passenger.so
PassengerRoot /opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/gems/1.8/gems/passenger-3.0.18
PassengerRuby /opt/ruby-enterprise-1.8.7-2012.02/bin/ruby

as suggested by
passenger-install-apache2-module

likewise I have also added the further necessary code replacing the substitutes :

<VirtualHost *:80>
      ServerName www.example.com
      # !!! Be sure to point DocumentRoot to 'public'!
      DocumentRoot /somewhere/public    
      <Directory /somewhere/public>
         # This relaxes Apache security settings.
         AllowOverride all
         # MultiViews must be turned off.
         Options -MultiViews
      </Directory>   
 </VirtualHost>

All works fine, till now but when I try to add another configuration for ruby 1.9.3 app, and follow the above same process, then I am not able to run both ruby 1.8.7 app and 1.9.3 app simultaneously.The latter runs successfully where as the former generates error.

I am using rvm to manage both apps, and have seperate gemsets for each of the application.

So, my question is that, how can I run both my applications simultaneously.

  • 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-06-18T04:20:27+00:00Added an answer on June 18, 2026 at 4:20 am

    You can’t run multiple ruby version simultaneously within a single phussion passenger configuration. If this is the case then one should run with the standalone server (let’s say on port 4000) and the you should configure apache to run as a proxy on that port. See http://blog.phusion.nl/2010/09/21/phusion-passenger-running-multiple-ruby-versions/ for more information.

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

Sidebar

Related Questions

I have installed two different version of rails in same gem set. When I
I have two different Rails application speaking with each other through API calls. Gone
I have two complex rails (AR) queries coming from two different methods that I
My Rails application uses STI where I have two different types of Customers. One
I am using devise in my rails application and I have two different resource
In my rails app, I have two layouts/controllers for different actions. Eseentially, I match
I have a rails application which needs to connect to two different databases. These
So I have a rails application that has two different navigation headers. One that
I have two rails application running at different ports. First at 3000 and the
I have two Ruby on Rails DateTime objects. How to find the number of

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.