I enabled logging with default settings and file log route. Everything works fine, but when it's time to rotate logs, Yii creates new file application.log, with rights rw-r–r-- and group euser:psacln And when apache process wants to writ there, it gets error. Fix is to set rights rw-rw-r-- and group euser:psaserv. But I can't do it every time! It's fully acceptale if it creates log with apache:apache, then it has rw access to the file and I have root access, so it's not a problem.
So, question is:
- How to make logger create file with apache:apache or some defined group
OR
- How to enable it simply rewrite the log file, I don't need history for the X days. One day is OK.