A brief guide:
Install ruby and passenger dependencies
1yum -y install ruby zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-develInstall gem
1234wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.17.tgztar zxvf rubygems-1.8.17.tgzcd rubygems-1.8.17ruby setup.rbInstall and build a Passenger for Apache
12gem install passengerpassenger-install-apache2-moduleCreate
passenger.conf
file in/etc/httpd/conf.d
123LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.soPassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11PassengerRuby /usr/bin/rubyCreate
conf
file for your Rails applicationTemporarily go into SELinux permissive mode
1setenforce 0Restart Apache
1/sbin/service httpd restartStart using your Rails application
Walk through SELinux log and generate new SELinux policy module
1grep httpd /var/log/audit/audit.log | audit2allow -M passengerInstall newly created SELinux module
1semodule -i passenger.ppSwitch SELinux back into enforcing mode
1setenforce 1