本页主题: Installing Ruby on Rails with mod_fcgid in Fedora Core 5 打印 | 加为IE收藏 | 复制链接 | 收藏主题 | 上一主题 | 下一主题

admin
级别: 管理员


精华: 1
发帖: 4646
威望: 47 点
金钱: 23190 RMB
贡献值: 0 点
注册时间:2006-10-09
最后登录:2008-12-02

 Installing Ruby on Rails with mod_fcgid in Fedora Core 5

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.

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

Extract, then run "ruby setup.rb"
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

install mysql-devel rpm: yum install mysql-devel
install mysql gem
gem install mysql -- --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql

Change database.yml to point to the correct mysql.sock file (say /var/lib/mysql/mysql.sock)
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
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/




http://www.megalinux.net/archives/630.html
顶端 Posted: 2007-07-17 10:07 | [楼 主]
帖子浏览记录 版块浏览记录
承德互联 » PHP+Mysql+Apache

Total 0.024027(s) query 5, Time now is:12-03 08:01, Gzip enabled
Powered by PHPWind v6.3.2 Certificate Code © 2003-08 PHPWind.com Corporation