Ruby on Rails on 1and1 shared linux hosting

Can’t be done as far as I can tell.

But here are the steps I tried after trying many tutorials.

#install ruby
mkdir ~/bin/ruby
cd ~/bin/ruby
wget <a class="moz-txt-link-freetext" href="ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz">ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz</a>
tar -zxvf ruby-1.8.5.tar.gz
cd ruby-1.8.5
./configure prefix=~/bin/ruby
#replace ext/openssl/ossl.h with updated version.
#refer to:
<a class="moz-txt-link-freetext" href="http://groups.google.com/group/ruby-talk-google/browse_thread/thread/8f17987659b4c59d/8ef4d94184abb473?lnk=st&q=ossl_bio.c%3A+In+function+%60ossl_obj2bio%27&rnum=1#8ef4d94184abb473">http://groups.google.com/group/ruby-talk-google/browse_thread/thread/8f17987659b4c59d/8ef4d94184abb473?lnk=st&q=ossl_bio.c%3A+In+function+%60ossl_obj2bio%27&rnum=1#8ef4d94184abb473</a>
wget <a class="moz-txt-link-freetext" href="http://edwardotis.com/public_files/ruby/rubyossl.patch">http://edwardotis.com/public_files/ruby/rubyossl.patch</a>
patch ext/openssl/ossl.h  rubyossl.patch
make
make install
export PATH=~/bin/ruby/bin:$PATH

#install rubygems
wget <a class="moz-txt-link-freetext" href="http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz">http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz</a>
tar -xzvf rubygems-0.9.0.tgz
cd rubygems-0.9.0
ruby setup.rb
#ruby setup.rb config --prefix=~/rubygems
#ruby setup.rb setup
#ruby setup.rb install

#install rails and necessary gems for rails
gem install mysql #choose option 3
gem install fcgi
gem install rails --include-dependencies

# In the file:
#~/bin/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/dispatches/dispatch.fcgi
#Replace
#!/usr/local/bin/ruby
#with
#!~/bin/ruby/bin/ruby

Plus, I setup mongrel and everything. Still no love.

Big waste of time. Much better to find a host who supports ROR and pay them separately for development environment. I love my 250GB on 1and1.



This entry was posted in Uncategorized. Bookmark the permalink.

4 Responses to Ruby on Rails on 1and1 shared linux hosting

  1. joe says:

    well ur time wasted is my time saved…. thanks for sharing and saving me from finding out the hard way… they are a great host i’m sure with time it will be standard…

  2. Pingback: The state of the code

  3. Ed says:

    Wow, my comment spam had gotten to 2500+ before I got a spam detector plugin really working. I’ve switched all my development to Dreamhost because they support Ruby on Rails and a boatload of other languages and packages out of the box. Plus you get more space, bandwidth, etc.
    http://www.dreamhost.com/r.cgi?300193

  4. Aaron says:

    Thanks for trying to get this working and telling us that its impossible. Appreciate the headsup.

Leave a Reply

Your email address will not be published. Required fields are marked *