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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:02:16+00:00 2026-06-11T02:02:16+00:00

I am new to Rails and trying to deploy an application to a CentOS

  • 0

I am new to Rails and trying to deploy an application to a CentOS server. I have chosen to use RVM as it seems to be highly recommended. I am open to Nginx, Apache or Passenger Stand Alone — whatever works and is easiest.

I have struggled with this install but think that I have successfully cleaned up after myself and have now followed the instructions for single user (non-sudo) rvm install (including ssh).

One thing I don’t understand is how Passenger should be installed (given that RVM is being used)?:

gem install passenger
sudo gem install passenger
rvmsudo gem install passenger

I assume that however it is installed, it should be started in the same way. I have tried each of these methods, but encounter problems in all cases.

When I started Passenger with sudo, I received:

Could not find factory_girl-3.6.1 in any of the sources (Bundler::GemNotFound)

I noticed that sometimes my ruby version would be 1.8.7 even if I set it to 1.9.3-p194 with RVM, so I uninstalled 1.8.7 (had been installed prior to RVM) and reinstalled 1.9.3-p194 (using RVM and specifying openssl again). I reinstalled passenger

Now when I do “sudo passenger start”, I just get a new prompt as though nothing happened. Also if I do “sudo gem install passenger”.

Finally, I notice that if I start passenger with rvmsudo that the webserver does start, however it gives an error to the console:

/usr/bin/evn: ruby: Permission denied

Any help would be greatly appreciated.

  • 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-11T02:02:18+00:00Added an answer on June 11, 2026 at 2:02 am

    You should not use sudo:

    gem install passenger
    passenger start
    

    However if you used sudo/rvmsudo – you could change permissions of some of the directories, if any of them are reported as not accessible then use this commands to fix them:

    chown -R $USER: {dir}
    chmod -R u+rwX,g+rwX,o+rX,o-w {dir}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to deploy an new rails 3.0/datamapper application on heroku cedar. Despite I
I have server (WHM, ruby 1.9.2, Rails 3.0.3, centOS, passenger) and I just deploy
I have a rails application that I am trying to deploy onto the internet.
I am new to cloudfoundry and rails, I am trying to deploy a new
I am new to Rails, and I was trying to deploy a very simple
I'm currently trying to set up integration/acceptance testing for a new rails 3 application
I'm trying to migrate my application from Rails 3.0.7 to Rails 3.1.3. I have
I have been using mysql in a new rails application, but now I wanted
I'm just trying to figure out why when I create a new rails application,
I am trying to deploy a Ruby-on-Rails application to AWS Beanstalk. The war is

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.