gem install passenger

yum install apr-devel
yum install apr-util-devel
yum install httpd-devel
passenger-install-apache2-module

复杂以下文件到httpd.conf

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.2-p290-module/gems/passenger-3.0.9/ext/apache2/mod_passenger.so
   PassengerRoot /usr/local/rvm/gems/ruby-1.9.2-p290-module/gems/passenger-3.0.9
   PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.2-p290-module/ruby
#For PAIFAN 后台
<VirtualHost *:80>
 ServerName padmin.qdigit.cn
 RailsEnv production
 #RailsEnv development 
 DocumentRoot /var/www/html/admin.insta/public
 ErrorLog /var/www/html/admin.insta/log/redmine.error.log
  <Directory /var/www/html/admin.insta/public>
  AllowOverride all
  #Options -MultiViews           
  Options Indexes -MultiViews
 </Directory>
</VirtualHost>

参考: http://www.modrails.com/install.html

转载请注明:韦旭红的点点滴滴 » 安装passenger for rails3