title: Why am I getting a permission denied error on my public folder?
body: <p>This one has got me stumped.  I'm deploying a Rails 3 app to Slicehost running Apache 2 and Passenger.  My server is running Ruby 1.9.1 using RVM.</p>
  
  <p>I am receiving a permission denied error on the "public" folder in my app.  My Virtual Host is setup as follows:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  
    ServerName  sharerplane.com
    ServerAlias www.sharerplane.com
    ServerAlias *.sharerplane.com
  
    DocumentRoot /home/robinjfisher/public_html/sharerplane.com/current/public/
  
    &lt;Directory "/home/robinjfisher/public_html/sharerplane.com/public/"&gt;
      AllowOverride all
      Options -MultiViews
      Order allow,deny
      Allow from all
    &lt;/Directory&gt;
  
    PassengerDefaultUser robinjfisher
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I've tried the following things: trailing slash on public; no trailing slash on public; PassengerUserSwitching on and off; PassengerDefaultUser set and not set; with and without the  block.</p>
  
  <p>The public folder is owned by robinjfisher:www-data and Passenger is running as robinjfisher so I can't see why there are permission issues.</p>
  
  <p>Does anybody have any thoughts?</p>
  
  <p>Thanks</p>
  
  <p>Robin</p>
  
  <p>PS. Have disabled the site for the time being to avoid indexing so what is there currently is not the site in question.</p>