log permission denied laravel code example
Example 1: storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
$ chmod -R 775 storage bootstrap/cache
Example 2: laravel log permission denied mac
sudo chmod -R 777 storage/*
Example 3: laravel file permission denied
Could be that although you have 755/777 permissions, SELinux is blocking httpd from writing/creating dirs.:
chcon -R -t httpd_sys_content_t /var/www/html
sudo chcon -R -t httpd_sys_rw_content_t /var/www/mrr/public/textpipe
sudo chgrp apache -R /var/www/html/files
chmod g+s .
Example 4: laravel.log" could not be opened in append mode
config.vm.synced_folder "./app","/var/www/", create:true,
:owner => "vagrant",
:group => "www-data",
:mount_options => ["dmode=775","fmode=664"]