sudo chmod 777 -R /var/www/html/storage/
Jan 2, 2019
5
Level 3
Permission denied for laravel storage logs
Hi All,
I have installed laravel in centos7 with apache, after intalled laravel i found out this error message
The stream or file "/var/www/html/storage/logs/laravel-2019-01-03.log" could not be opened: failed to open stream: Permission denied
And then i had tried to change storage folder to chmod -R 777 and even tried to change whole laravel application folder to chmod -R 777. It's still came out same message.
Level 3
I found solution from https://superuser.com/questions/1336893/laravel-file-permissions-for-apache
sudo setenforce 0
It work for me
1 like
Please or to participate in this conversation.