Laravel setup: permission denied

When in the directory of the app
sudo chmod -R ug+rwx storage bootstrap/cache

also check

ls -l ‘file or directory’
sudo chown -R apache:apache ‘file or directory’
sudo chmod -R g+w ‘file or directory’
make sure you user is part of the apache or www-data group

Try building the app with the intended user and not root

refs:
https://stackoverflow.com/questions/52178033/the-stream-or-file-laravel-log-could-not-be-opened-failed-to-open-stream-pe

1 thought on “Laravel setup: permission denied”

  1. Pingback: Setup Centos for Laravel production server – Digital Creative

Leave a Reply

Your email address will not be published. Required fields are marked *