How to fix Error: laravel.log could not be opened?

Posted by

Depending on how your web server is setup, you may be able to be more specific with your permissions, and only grant them to your web server user. Google WEB SERVER NAME Laravel file permissions for more information.

You need to adjust the permissions of storage and bootstrap/cache.

Step 1:

cd into your Laravel project. 

Step 2:

sudo chmod -R 755 storage

Step 3:

sudo chmod -R 755 bootstrap/cache

You can try 777 if 755 doesn’t work. 777 is not secure though!

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x