Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied The exception occurred while attempting to log [Laravel] #139

Closed
sanjayojha opened this issue Apr 14, 2023 · 2 comments
Closed

Comments

@sanjayojha
Copy link

For some reason, Laravel can not write in stroage log. I am getting following error:

The stream or file "/var/www/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log:

Using Windows with WSL2.

@nabad600
Copy link
Collaborator

Hi @sanjayojha,
You can change the directory permission through the console, please below the details
image
Click Shell
image
Click LARAVEL container
image
open console

image
Run the command sudo chmod 777 storage

Hope the issue is resolved.

@nabad600
Copy link
Collaborator

Hi @sanjayojha
Hope the issue is resolved, I'm closing this ticket as you created a separate ticket with a new issue.
we'd be happy to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants