Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kankai's avatar

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.

0 likes
5 replies
vajid's avatar

sudo chmod 777 -R /var/www/html/storage/

1 like
pkongawi's avatar

@KANKAI - I am having the same problem. How do I a make fix this problem using MAC and phpMyadmin

user3008's avatar

It is throwing permission issues. You can fix them by running "sudo chmod -R 777 storage". OR try to run from the development server by running "php artisan serve" rather than running on your own virtual host

Run the commands from project root folder only

Please or to participate in this conversation.