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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:16:05+00:00 2026-05-16T20:16:05+00:00

I have been trying to setup nginx with passenger for a few days now

  • 0

I have been trying to setup nginx with passenger for a few days now and keep running into problems. When I go to my Rails application with my browser it says: Missing the Rails 2.3.8 gem. Please gem install -v=2.3.8 rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

If I type gem list in my terminal it shows: rails (3.0.0, 2.3.8, 2.3.5)

What is funny is that passenger will find my ruby gems just fine when I use it with Apache on the same machine! But I would like to experiment with nginx because Apache is not doing what I want.

The machine is Ubuntu 10.04 Server

  • which ruby Shows: /usr/local/bin/ruby (REE)
  • These are the passenger directives in the nginx.conf:
    • passenger_root /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15;
      passenger_ruby /usr/local/bin/ruby;
  • 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-16T20:16:06+00:00Added an answer on May 16, 2026 at 8:16 pm

    @Nik Rishav is correct in that you have to be careful when installing Ruby Enterprise Edition (REE) along side the system Ruby. Installing REE incorrectly can cause some very strange things to happen.

    While Rails 3.0 could be the cause of your issues, my gut tells me your real issue is one missed step when installing REE. But, just-in-case this doesn’t work, a quick Google search will show you any number of good tutorials showing you how to host a Rails app with Phusion Passenger for Nginx. Well, let’s give it a go, shall we!

    REE runs fine alongside system Ruby, but you have to install it into its own directory. For example:

    /opt/ruby-enterprise-X.X.X/bin/ruby
    

    Your other option is to only install REE, but this might not be an option for you. I suspect that when Nginx runs, it does find REE as you have specified it. Did you install Passenger for Nginx from the REE stack?

    /opt/ruby-enterprise-X.X.X/bin/passenger-install-apache2-module
    

    If you haven’t, you might want to look into that. I’ll assume you did.

    From your description, it doesn’t look like you have told REE where to find your gems. To do this, you need to set REE as the default Ruby Interpreter. To do this, add an entry to the file /etc/environment. On Ubuntu, the directory is /etc/environment. Add REE’s bin directory to the PATH environment variable, like this:

    PATH="/opt/ruby-enterprise-x.x.x/bin:/usr/local/sbin:/usr/local/bin"
    

    Placing REE first in the PATH will set it as the default Ruby interpreter.

    Then restart Nginx, like so:

    sudo /etc/init.d/nginx restart
    

    Hopefully this helps. I’ve had my share of deployment issues and it truly can be frustrating. Wouldn’t wish it on anyone…Good luck!

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

Sidebar

Related Questions

I have been trying to figure this out for a few days now and
I have been trying to setup Ruby on Rails for the past 2 days
Okay so I have been trying to get into IoC lately. However, I keep
All this weekend I have been trying to setup a Rails 3.0.4 app in
Have been trying out Web2Py for a couple of days now and I decided
I have been trying it for few days and I do not understand what
I have been trying to create a basic rails application. I used generate to
I have been trying for a few days to get Sonata Media Bundle working
I have been trying to setup ARToolkit on my UBUNTU 11.10 pc.The problem i
for around 5 consecutive days i have been trying to set up my computer

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.