Laravel Permission Denied

It turns out I was missing a view directories in laravel_root/storage/. In order to fix this, all I had to do was:

  1. cd {laravel_root}/storage
  2. mkdir -pv framework/views app framework/sessions framework/cache
  3. cd ..
  4. chmod 664 -R storage
  5. chown -R www-data:www-data storage

After that, upon reloading, the issue was fixed. Thanks to Someguy123 from #laravel on freenode for fixing this issue!


If your permissions are 777 for Laravel Application folder and are still getting that error, it's because Seliux has blocked it. The application folder can be unblocked with the command below

su -c "chcon -R -h -t httpd_sys_script_rw_t /var/www/laravel-folder"