Cant access log files in production.
Posted
by Sid
on Stack Overflow
See other posts from Stack Overflow
or by Sid
Published on 2010-03-18T10:35:43Z
Indexed on
2010/03/18
10:51 UTC
Read the original article
Hit count: 378
I was trying to run my application and check for some output on the production.log. However Rails throws this error. Apache log
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.
I have performed the necessary chmod 666 production.log to make it work but I realized that the file is under root access.
So my file permissions are
-rw-rw-rw- 1 root root 20845 2010-03-18 01:18 production.log
Im not sure how to allow Rails to access this file. Im fairly new to managing linux production env so I request you to excuse my ignorance.
© Stack Overflow or respective owner