Hello all,
i am building a site using laravel 5, and run on to this little issue, i need clarification please. thanks all in advance, here is the initial configuration:
Installation configurations: 1- Laravel 5 standard installation - debug mode ON 2- storage directory set to 775 permissions 3- storage is chown to user.www-data... user is my OS user, www-data is Apache web server group 4- User is included in www-data group
laravel configurations: 5- route to a controller 6- the controller routed to a view named, index.blade.php 7- have a layout called master.blade.php 8- i include on both files standard blade syntax for basic templating 9- if no errors on the files all work as expected ... no problems so far
issue: 10 - When ... for example i typo the name of the view on the controller ... from index.blade.php to for example juancho.blade.php ... i expect a View not FOUND error ... but the page always shows completely BLANK no error message... 11- BUT if i change storage permissions to 777 ... i see the errors as expected.
Now, can you please tell me why the laravel debug do not work properly when the storage is not set to 777 ? Is my storage permissions configuration not correct ?
If the later, how is the correct way to configure storage for a production server ?
Thanks for the help
Juan
you have to set the permissions to 777 on the storage folder and according subfolders for Laravel to work.
Froms the docs:
Permissions
Laravel may require one set of permissions to be configured: folders within storage require write access by the web server.
Check the configuration:
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community