passenger(mod_rails) インストールメモ

passenger(mod_rails) は注目に値する。
本命だったmongrelの開発者がRubyに見切りをつけたようで、今後に期待できないから。

# gem install passenger

# passenger-install-apache2-module

yum install httpd-devel」やれよと言われたのでやる

# yum install httpd-devel

httpd.confを編集

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.1/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.1
PassengerRuby /usr/local/bin/ruby
# RailsEnv development # ←developmentで動かすなら デフォルトはproduction

ServerName www.yourhost.com
DocumentRoot /rails_apl/public

Apache 再起動で
WEBrickの時
http://127.0.0.1:3000/hoge/
だったのが
http://127.0.0.1/hoge/
でいける。

Apache2.2.6 + passenger(mod_rails)で
Rails 2.0.2でscaffoldしたアプリが動いた。


Rails of Ruby on Rails ~Case of LOCUSANDWONDERS.COM~
Plan de Sens 清水 智雄
毎日コミュニケーションズ
売り上げランキング: 68013
おすすめ度の平均: 4.0
4 内容としては良いのですが
5 そのチャレンジを評価したい
5 サンプルが実践的
4 Ruby on RailsGUIで開発してブラウザで公開できる本
1 装丁が極悪