title: Why is this permissions error occurring with mod_passenger.so?
body: <p>I'm setting up a production RHEL 6 server with RVM and Passenger. I've gotten through installing RVM (to my home dir), installing Passenger, and adding the required lines to <code>httpd.conf</code>:</p>
  
  <pre><code>LoadModule passenger_module /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
  PassengerRoot /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11
  PassengerRuby /home/em/.rvm/wrappers/ruby-1.9.2-p290@rails_3_production/ruby
  </code></pre>
  
  <p>But when I restart Apache I get this error...</p>
  
  <pre><code>$ sudo /sbin/service httpd restart
  Stopping httpd:                                            [FAILED]
  Starting httpd: httpd: Syntax error on line 218 of /etc/httpd/conf/httpd.conf: Cannot load /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11/ext/apache2/mod_passenger.so into server: /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11/ext/apache2/mod_passenger.so: cannot open shared object file: Permission denied
                                                             [FAILED]
  </code></pre>
  
  <p>Experimentally, I set the whole path starting at <code>~/.rvm/...</code> to 777, but I'm still getting that same error.</p>
  
  <p>Any thoughts?</p>