Masoud Khani
Masoud Khani

Reputation: 37

Laravel: laravel.log permission denied

When I try to open my Laravel app I get the following error:

UnexpectedValueException 
The stream or file "/laravel/storage/logs/laravel.log" could not be opened: 
failed to open stream: Permission denied

Why is this and how can I fix it?

Upvotes: 1

Views: 7363

Answers (3)

bb14816
bb14816

Reputation: 483

Maybe if you have installed Cent OS have to disable selinux.

setenforce 0

it will works.

Upvotes: -1

JUAN
JUAN

Reputation: 1

on FINDER right clic on STORAGE (inside ::your disk:: /Applications/XAMPP/xamppfiles/htdocs/laravel) folder and go to INFORMATION, go to bottom SHARING AND PERMISSIONS, there you must give READ AND WRITE permissions to EVERYONE. This option worked for me

NOTE: my OS languaje is SPANISH, may be text have some little variations; please, excuse my english

Upvotes: 0

Option
Option

Reputation: 2645

Write the following within terminal and ensure you are in the projects directory:

sudo chmod -R 777 storage/*

Upvotes: 9

Related Questions