Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Danlog's avatar

Laravel with Docker "laravel.log" could not be opened in append mode: Failed to open stream: Permission denied

Suddenly I started to get this error, and I cannot work on the app at all. Once the error got fixed by itself, but now that I opened the project today, I started to get it again.

I tried changing the permissions, as we can see here:

drwxrwxr-x 8 root www-data 256 Jul 7 08:25 storage

How can I fix this?

0 likes
2 replies
sr57's avatar
sr57
Best Answer
Level 39

Best solution is to make www-data owner of storage

sudo chown -R www-data storage
1 like

Please or to participate in this conversation.