I am trying to run an existing Laravel project on my localhost but when I try to run the dam thing I get this error:
The stream or file "/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
I have tried the following:
chmod -R 775 storage
and chmod -R 777 storage
Still nothing, I have even tried to do chgrp -R www-data my-project
and I get this error in terminal
chgrp: www-data: illegal group name
What am I doing wrong?
Navigate to the project directory and run
sudo chmod -R 777 storage/*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With