Reputation: 37
When I try to open my Laravel app I get the following error:
UnexpectedValueException
The stream or file "/laravel/storage/logs/laravel.log" could not be opened:
failed to open stream: Permission denied
Why is this and how can I fix it?
Upvotes: 1
Views: 7363
Reputation: 483
Maybe if you have installed Cent OS have to disable selinux.
it will works.
Upvotes: -1
Reputation: 1
on FINDER right clic on STORAGE (inside ::your disk:: /Applications/XAMPP/xamppfiles/htdocs/laravel) folder and go to INFORMATION, go to bottom SHARING AND PERMISSIONS, there you must give READ AND WRITE permissions to EVERYONE. This option worked for me
NOTE: my OS languaje is SPANISH, may be text have some little variations; please, excuse my english
Upvotes: 0
Reputation: 2645
Write the following within terminal and ensure you are in the projects directory:
sudo chmod -R 777 storage/*
Upvotes: 9