Level 2
Feb 12, 2016
2
Level 2
Log permission problem
I use cap to deploy and chmod storage folder to 777, and use cron schedule to run some tasks.
If the schedule task run, then create a root root log file, that caused permission error when nginx write any log into that log file, because nginx belongs to www-data.
I'm not clear what's the right way to deploy, any idea?
Thanks!
storage folder:
4 drwxrwxrwx 4 root root 4096 Feb 6 22:13 storage
log files:
0 -rwxrwxrwx 1 root www-data 0 Feb 9 23:27 laravel-2016-02-07.log
4 -rwxrwxrwx 1 root root 116 Feb 8 22:00 laravel-2016-02-08.log
0 -rwxrwxrwx 1 root www-data 0 Feb 9 23:27 laravel-2016-02-09.log
4 -rwxrwxrwx 1 root root 2552 Feb 13 12:05 laravel-2016-02-13.log
Please or to participate in this conversation.