My application is being deployed to AWS Lightsail(LAMP) and when I try to run artisan migrate
it says:
The stream or file "/opt/bitnami/projects/app-name/storage/logs/laravel.log" could not be opened in append mode: failed to o
pen stream: Permission denied
What I have tried so far is to allow access to storage via:
sudo chmod -R 775 storage
Also, I can only access my home page if I use sudo chmod -R 777 storage
but not sudo chmod -R 775 storage
. I am not sure why.
but it is still giving me the error. What seems to be this issue?