title: Why is my Rails app not loading using Passenger 3, RVM and Rails 3.1?
body: <p>I am having difficulties with Passenger 3, Apache, RVM and a Rails 3.1 application on Ubuntu. For some reason, the Rails app is not loading, however I have run basically the same configuration before and had no problem.</p>
  
  <p>I have Ruby 1.9.2 installed in RVM and Passenger installed with all gems in default.</p>
  
  <p>I put the following in the <code>apache.conf</code> file:</p>
  
  <pre><code>LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
  PassengerRoot /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11
  PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.2-p290/ruby
  </code></pre>
  
  <p>This is my virtual hosts configuration:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
    ServerName server
    DocumentRoot /root/www/tester/public
    &lt;Directory /root/www/tester/public&gt;
      Allow from all
      Options -MultiViews
    &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Passenger appears to be loading, as the Apache log shows:</p>
  
  <pre><code>[Wed Jan 11 23:18:28 2012] [notice] Apache/2.2.20 (Ubuntu) Phusion_Passenger/3.0.11 configured -- resuming normal operations
  </code></pre>
  
  <p>but, I cannot get the application to load at all.</p>
  
  <p>If I run Passenger standalone I get the following error:</p>
  
  <pre><code>2012/01/11 23:03:31 [error] 13427#0: *4 "/root/www/sound/public/index.html" is forbidden (13: Permission denied), client: 127.0.0.1, server: _, request: "HEAD / HTTP/1.1", host: "0.0.0.0"
  </code></pre>
  
  <p>I changed all the permissions to <code>755</code> and gave ownership to <code>apache (www-data)</code> but to no avail.  </p>
  
  <p>Finally, when I run passenger-status, I get:</p>
  
  <pre><code>----------- General information -----------
    max      = 6
    count    = 0
    active   = 0
    inactive = 0
   Waiting on global queue: 0
  
  ----------- Application groups -----------
  </code></pre>
  
  <p>But, as you can see, there is no application loaded.</p>