Installing Ruby on Rails with mod_fcgid in Fedora Core 5

| | Comments (0) | TrackBacks (0)

In order to make Ruby on Rails work on Fedora Core 5 with apache and mod_fcgid, a mixture of installation from Yum repository and source is required.

Installing Ruby

Install ruby using yum
# yum install ruby

Installing RubyGems

RubyGems is the standard Ruby package manager. It's similar to apt-get, emerge, and other OS package managers.

  1. Download RubyGems from http://rubyforge.org/frs/?group_id=126

  2. Extract, then run "ruby setup.rb"
  3. Install the dependencies required using: gem install rails --include-dependencies

Installing FastCGI


Download and install FCGI from http://www.fastcgi.com/dist/fcgi.tar.gz

The final steps

  1. install mysql-devel rpm: yum install mysql-devel
  2. install mysql gem
    gem install mysql -- --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql
  3. Change database.yml to point to the correct mysql.sock file (say /var/lib/mysql/mysql.sock)
  4. install gem fcgi
    gem install fcgi --source http://rubyforge.planetargon.com/gems.rubyforge.org/ -- --with-fcgi-include=/usr/local/include --with-fcgi-lib=/usr/local/lib
  5. Configure httpd.conf with the following for your virtualhost:
                    AddHandler fcgid-script .fcgi .cgi
                    IdleTimeout 3600
                    ProcessLifeTime 7200
                    MaxProcessCount 8
                    DefaultMaxClassProcessCount 2
                    IPCConnectTimeout 120
                    IPCCommTimeout 60
                    DefaultInitEnv RAILS_ENV production
                    SocketPath /tmp/fcgid_sock/
    

Technorati Tags: , , ,

0 TrackBacks

Listed below are links to blogs that reference this entry: Installing Ruby on Rails with mod_fcgid in Fedora Core 5.

TrackBack URL for this entry: http://www.megalinux.net/cgi-bin/mt/mt-tb.fcgi/64

Leave a comment

About this Entry

This page contains a single entry by Ram Prasad published on October 15, 2006 7:36 PM.

SugarCRM 4.2 & Blank Pages was the previous entry in this blog.

qmail: alert: cannot start: unable to open mutex is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by
Movable Type 4.01