title: What permissions are needed for apache Passenger
body: <p>Running Ubuntu 10.04 on Linode, RVM, Rails 3, Apache with Passenger module, carrierwave and mini-magick</p>
  
  <p>I get:</p>
  
  <pre><code>Rails Error: Unable to access log file. Please ensure that /srv/www/mysite.com/testapp/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
  </code></pre>
  
  <p>and <code>Errno::EACCES (Permission denied /srv/www/mysite.com/testapp/public/uploads/tmp/20110517-1707-2938-6455):</code></p>
  
  <p>I ran <code>chmod -R root:root /srv/www/mysite.com/testapp</code></p>
  
  <p>Then: <code>chmod -R www-data:www-data /srv/www/mysite.com/testapp</code> &amp; <code>chmod -R www-data:www-data /srv/www/mysite.com/testapp/public/uploads</code></p>
  
  <p>Since the only 2 directories that should be writable is the log files and uploads directory I tried to secure the rest.  Are there any other folders / files that I need to make writable?</p>