This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host Web Hosting Help

Rails Troubleshooting

Problem:

Rails Troubleshooting!

Solution

Make sure you have SSH enabled in order to follow these directions as it is required to install gems locally.

1. Add the following lines to your $HOME/.bashrc file (these can be copy and pasted):
               export GEM_HOME=$HOME/ruby/gems
               export GEM_PATH=$GEM_HOME:/lib64/ruby/gems/1.9.3
               export GEM_CACHE=$GEM_HOME/cache
               export PATH=$PATH:$HOME/ruby/gems/bin
2. Now, you'll have to edit the source file for the rack gem. This *should* be located here:
               $HOME/ruby/gems/gems/rack-1.1.6/lib/rack/handler/fastcgi.rb
Just comment out line #7 so it looks like this:
               #alias _rack_read_without_buffer read
3. Now modify the applications environment.rb file so that the correct gem path is included. This line should go up at the top before the version of rails is specified:
              ENV['GEM_PATH'] = '/path/to/their/home/ruby/gems:/usr/lib/ruby/gems/1.9.3'
4. Kill off fastcgi processes.


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

What Ruby on Rails version and Gems are installed?
Knowledgebase Article 166,378 views tags: gem gems rails ruby

My Ruby on Rails installation keeps displaying a '404 Not Found' error.
Knowledgebase Article 232,148 views tags: file missing public rails ruby

How do I setup Ruby on Rails?
Knowledgebase Article 404,079 views tags: rails ruby

Related Help Content

When I attempt to execute my Ruby on Rails application I receive "500- Premature end of script."
Knowledgebase Article 170,190 views tags: premature rails ruby script

General Email issues where should I start?
Knowledgebase Article 299,983 views tags: email troubleshooting

Can't receive emails? Here are a few things to try.
Knowledgebase Article 198,068 views tags: email troubleshooting

How to install Redmine a Ruby on Rails application
Knowledgebase Article 130,225 views tags: redmine ruby

How to install the php.ini file and then increase the PHP Memory limit.
Video "How-to" Tutorial 497,094 views tags: limit troubleshooting wordpress

How can I fix problems with Office 365 and Outlook?
Knowledgebase Article 79,362 views tags: email errors issues microsoft office productivity sara troubleshooting

Glance is a screen sharing application tool that will allow support agents to view your screen in real-time so that we can better direct your actions to resolve complex issues.
Knowledgebase Article 96,070 views tags: connect remote screen share support tool troubleshooting

This article will explain how to change your WordPress Urls
Video "How-to" Tutorial 333,113 views tags: login temp troubleshooting urls wordpress

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.