Skip to content
Tom Magnusson edited this page Oct 28, 2018 · 1 revision

Permissions issues

[2018-10-28 16:17:42] production.ERROR: file_put_contents(/data/sga_webapps/htdocs/sga-website/storage/framework/views/dc7783b7a80eff47b178015a4bf5093e9e2bf22f.php): failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/data/sga_webapps/htdocs/sga-website/storage/framework/views/dc7783b7a80eff47b178015a4bf5093e9e2bf22f.php): failed to open stream: Permission denied at /data/sga_webapps/htdocs/sga-website/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)
[stacktrace]
  1. sudo chmod -R 777 . from sga-website or whatever root project folder. This will change the permissions so that everything within the folders can be written and read by every user.
  2. composer dump-autoload
  3. php artisan cache:clear
  4. php artisan view:clear
Clone this wiki locally