Laravel setup: permission denied

  • by

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

Leave a Reply