Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

php

laravel

I am trying to run an existing Laravel project on my localhost but when I try to run the dam thing I get this error:

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

I have tried the following:

chmod -R 775 storage and chmod -R 777 storage

Still nothing, I have even tried to do chgrp -R www-data my-project and I get this error in terminal

chgrp: www-data: illegal group name

What am I doing wrong?

like image 849
user979331 Avatar asked Nov 29 '22 00:11

user979331


1 Answers

Navigate to the project directory and run

sudo chmod -R 777 storage/*
like image 83
Victor Ejiogu Avatar answered Dec 05 '22 23:12

Victor Ejiogu