This content originally appeared on DEV Community and was authored by ssbhattarai
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}
Now your storage permission error must be solved by now.
Happy Coding!!
This content originally appeared on DEV Community and was authored by ssbhattarai
ssbhattarai | Sciencx (2021-08-23T10:43:10+00:00) Permission denied for laravel 8 storage logs [solved] – 2021. Retrieved from https://www.scien.cx/2021/08/23/permission-denied-for-laravel-8-storage-logs-solved-2021/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.