title: Can't access log files in production
body: <p>I was trying to run my application and check for some output on the production.log. However <a href="http://en.wikipedia.org/wiki/Ruby_on_Rails" rel="nofollow noreferrer">Ruby on Rails</a> throws this error.
  Apache log</p>
  
  <p><code>Rails Error: Unable to access log file. Please ensure that /var/www/somefolder/someapp/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></p>
  
  <p>I have performed the necessary chmod 666 production.log to make it work but I realized that the file is under root access.</p>
  
  <p>So my file permissions are </p>
  
  <p><code>-rw-rw-rw- 1 root root  20845 2010-03-18 01:18 production.log</code></p>
  
  <p>I'm not sure how to allow Ruby on Rails to access this file. I'm fairly new to managing a Linux production environment so I request you to excuse my ignorance.</p>