I am facing this issue in AWS Server,
The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
And I give permission to "777",Now
sudo chmod -R 755 storage/
sudo chmod -R 777 storage/
ErrorException file_put_contents(/var/www/html/storage/framework/sessions/UMNbxoQBZjaUuZK7j4IHfRp3fWJF8pd688gnWX4o): failed to open stream: Permission denied
I receive this error Please help me to fix.
OS
– Kamlesh Paulsudo chcon -t httpd_sys_rw_content_t storage
– Kamlesh Paul