A brief guide:
- Install ruby and passenger dependencies
yum -y install ruby zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel
- Install gem
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.17.tgz tar zxvf rubygems-1.8.17.tgz cd rubygems-1.8.17 ruby setup.rb
- Install and build a Passenger for Apache
gem install passenger passenger-install-apache2-module
- Create
passenger.conffile in/etc/httpd/conf.dLoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11 PassengerRuby /usr/bin/ruby
- Create
conffile for your Rails application - Temporarily go into SELinux permissive mode
setenforce 0
- Restart Apache
/sbin/service httpd restart
- Start using your Rails application
- Walk through SELinux log and generate new SELinux policy module
grep httpd /var/log/audit/audit.log | audit2allow -M passenger
- Install newly created SELinux module
semodule -i passenger.pp
- Switch SELinux back into enforcing mode
setenforce 1

Thank you Sergiy,
After 2 sleepless nights, I solve my problem in few minutes with your hints.
My configuration is with rvm, but anyhow information in this page was very, very helpful
Thank you very much again.
Best regards,
Stoyan Stoyanoff
I’m glad to hear.
Pingback: Deploying Rails apps on CentOS SELinux | Kude Labs
Thanks! You just saved me a ton of time dealing with Passenger/SELinux issues.
Thanks man. Worked like a charm.
Pingback: CSchmitt.Net » Phusion Passenger in CentOS