# Ruby on Rails through cPanel

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-through-cpanel/169991>\
**Category:** Rails\
**Created:** [June 11, 2009, 1:08am UTC](https://www.ruby-forum.com/t/ruby-on-rails-through-cpanel/169991 "2009-06-11T01:08:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpierry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@rpierry](https://www.ruby-forum.com/u/rpierry)\
**Post date:** [June 11, 2009, 1:08am UTC](https://www.ruby-forum.com/t/ruby-on-rails-through-cpanel/169991/1 "2009-06-11T01:08:12Z")

</div>

Hi,

I am having several problems using Ruby on Rails through cPanel. The  
main problems come when using Ruby Gems.

They seem to install correctly, however errors are caused when I try to  
include them in the application.

cPanel states;

"Using Your Ruby Gem(s)

You will need to add /home/\*\*\*/ruby/gems to the include path.  
You can do this by adding the following code to your script:

$:.push("/home/\*\*\*/ruby/gems")"

However I don’t really understand what this means. Where do I put this?

How would I go about including a Gem?

Thanks in advance,  
Rob

---

<div class="post-metadata">

**Author:** ![rpierry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@rpierry](https://www.ruby-forum.com/u/rpierry)\
**Post date:** [June 11, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-through-cpanel/169991/2 "2009-06-11T18:41:24Z")

</div>

The cPanel instructions are incorrect; simple gems may work using that  
method, but it’s not going to work in general.

See this page:  
[http://wiki.a2hosting.com/index.php/How\_to\_install\_your\_own\_Ruby\_Gems](http://wiki.a2hosting.com/index.php/How_to_install_your_own_Ruby_Gems)

For a better explanation of the correct way (using GEM\_HOME).

–Matt J.
