DEV Community

Cover image for Permission denied for laravel 8 storage logs [solved] - 2022
ssbhattarai
ssbhattarai

Posted on • Edited on

1

Permission denied for laravel 8 storage logs [solved] - 2022

If you are a laravel developer you may run into the laraval.log permission error that is **The stream or file "log file location" could not be opened: failed to open stream: Permission denied. I found this error mostly while deploying laravel in VPS (virtual private network) in digitalocean droplet.

To solve this error there is only one command which is:

sudo chown -R www-data:www-data /var/www/{laravel_project_name}
Enter fullscreen mode Exit fullscreen mode

Now your storage permission error must be solved by now.

Happy Coding!!

Top comments (1)

Collapse
 
fernandomullerjr profile image
Fernando Muller Junior
Comment hidden by post author

Some comments have been hidden by the post's author - find out more

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More