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)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git