"storage/logs/laravel-2019-11-22.log" could not be opened: failed to open stream: Permission denied
Alright I got the answer:
AWS AMI uses webapp
as the web user, not apache or ec2-user
as the file shows. In that case, the webapp
user has no access rights over those files.
sudo chown $USER:webapp ./storage -R
find ./storage -type d -exec chmod 775 {} \;
find ./storage -type f -exec chmod 664 {} \;
Using the console, go to your synced folder (vagrant)
sudo chown -R $USER:www-data storage
chmod -R 775 storage