After a few hours of trial and error using advice from many different sites/posts, this is the process that I found successful in getting Ruby on Rails working with the Apache 2 fcgi module on linux. I hope this helps someone hang onto a few more hair follicles.
Before we begin, I can say that this was only successful when I did the setup in this order. Perhaps others have done it in a different way, but this worked for me. BTW, I using Redhat Enterprise 4.
First, we’ll install ruby.
1 2 3 4 5 6 7 | curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4.tar.gz tar xvfz ruby-1.8.4.tar.gz cd ruby-1.8.4 ./configure --codefix=/usr/local make make install cd .. |
Just to make sure everything installed properly try this:
1 | ruby --version |
It should return something like this:
1 | ruby 1.8.4 (2005-12-24) [i686-linux] |
Now let’s install ruby gems.
1 2 3 4 5 | curl -O http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz tar xvfz rubygems-0.8.11.tgz cd rubygems-0.8.11 ruby setup.rb cd .. |
Now we need to install the FastCGI development kit.
1 2 3 4 5 6 7 | curl -O http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz tar xvfz fcgi-2.4.0.tar.gz cd fcgi-2.4.0 ./configure --codefix=/usr/local make make install cd .. |
Allrighty then. We’re moving now.
Continue reading ‘Installing Ruby on Rails with mod_fcgi for Apache 2′
Recent Comments