Permission denied for laravel 8 storage logs [solved] – 2021

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 (v…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Permission denied for laravel 8 storage logs [solved] – 2021." ssbhattarai | Sciencx - Monday August 23, 2021, https://www.scien.cx/2021/08/23/permission-denied-for-laravel-8-storage-logs-solved-2021/
HARVARD
ssbhattarai | Sciencx Monday August 23, 2021 » Permission denied for laravel 8 storage logs [solved] – 2021., viewed ,<https://www.scien.cx/2021/08/23/permission-denied-for-laravel-8-storage-logs-solved-2021/>
VANCOUVER
ssbhattarai | Sciencx - » Permission denied for laravel 8 storage logs [solved] – 2021. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/23/permission-denied-for-laravel-8-storage-logs-solved-2021/
CHICAGO
" » Permission denied for laravel 8 storage logs [solved] – 2021." ssbhattarai | Sciencx - Accessed . https://www.scien.cx/2021/08/23/permission-denied-for-laravel-8-storage-logs-solved-2021/
IEEE
" » Permission denied for laravel 8 storage logs [solved] – 2021." ssbhattarai | Sciencx [Online]. Available: https://www.scien.cx/2021/08/23/permission-denied-for-laravel-8-storage-logs-solved-2021/. [Accessed: ]
rf:citation
» Permission denied for laravel 8 storage logs [solved] – 2021 | ssbhattarai | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.