DEV Community

mostafalaravel
mostafalaravel

Posted on

Every new day I have this error : failed to open stream: Permission denied

Hello ,

I have this error

The stream or file "/data/www/site.com/storage/logs/laravel-2021-01-14.log" could not be opened in append mode: failed to open stream: Permission denied
Enter fullscreen mode Exit fullscreen mode


`

`


-rw-r--r-- 1 root        root       30833 Jan 14 09:00 laravel-2021-01-14.log

Enter fullscreen mode Exit fullscreen mode


``

When I change the directory permission it works BUT after one day I got the same error again!

Top comments (0)