Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

zilladotexe's avatar

ErrorException in Filesystem.php line 109:

Setting up Laravel on local and I can't get rid of this error when serving. I created all the directories in /storage, and made sure they're all 755 and {user}:www-data permissions.

Running: Ubuntu 14.04 LTS; Apache 2.4.7; PHP 5.5.9;

I've been throwing commands at this for over 2 hours and I'm probably overlooking a simple solution, but for the life of me I just cannot figure it out.

Entire stack trace here: http://pastebin.com/TYZQbzsF

0 likes
1 reply
zilladotexe's avatar

Nevermind, I fixed this finally. Looks like Laravel uses realpath() to find compiled views which reside in storage/framework/views, which will return false if the folder doesn't exist or have the proper permissions.

The fix for this is to change this line in config/view.php

'compiled' => realpath(storage_path('framework/views')),

to this

'compiled' => storage_path() . '/framework/views',

Please or to participate in this conversation.