0
votes

Error in exception handler:

The stream or file "/home/wwwroot/default/tor_service/app/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /home/wwwroot/default/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:84

Anyone knows how to fix this? Thank you.

1
This says that you do not have the permission to write to the file /home/wwwroot/default/tor_service/app/storage/logs/laravel.log, make sure that you can create a file and edit its content in the above path.Hieu Le
Can you explain a little more in detail please?ByLug
You should exec the touch /home/wwwroot/default/tor_service/app/storage/logs/laravel.log in your console under the user that your web server is running to see if there is any errors.Hieu Le

1 Answers

-2
votes

Storage folder should be writable by your web server.

You can change the owner of the storage directory to www-data

chown -R www-data:www-data storage