Laravel

Whoops, looks like something went wrong.

(1/1) UnexpectedValueException

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

in StreamHandler.php line 107
at StreamHandler->write(array('message' => 'ErrorException: file_put_contents(/var/www/html/storage/framework/sessions/H8lbuTLRMiZZW4batPjkUPxMijbMAujVS1Y9mWrw): failed to open stream: Permission denied in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122Stack trace:#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, \'file_put_conten...\', \'/var/www/html/v...\', 122, Array)#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents(\'/var/www/html/s...\', \'a:3:{s:6:"_toke...\', 2)#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\Filesystem\\Filesystem->put(\'/var/www/html/s...\', \'a:3:{s:6:"_toke...\', true)#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\Session\\FileSessionHandler->write(\'H8lbuTLRMiZZW4b...\', \'a:3:{s:6:"_toke...\')#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(88): Illuminate\\Session\\Store->save()#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\Session\\Middleware\\StartSession->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Foundation\\Http\\Kernel->terminateMiddleware(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#7 /var/www/html/public/index.php(58): Illuminate\\Foundation\\Http\\Kernel->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#8 {main}', 'context' => array(), 'level' => 400, 'level_name' => 'ERROR', 'channel' => 'local', 'datetime' => object(DateTime), 'extra' => array(), 'formatted' => '[2024-03-29 10:50:02] local.ERROR: ErrorException: file_put_contents(/var/www/html/storage/framework/sessions/H8lbuTLRMiZZW4batPjkUPxMijbMAujVS1Y9mWrw): failed to open stream: Permission denied in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122Stack trace:#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, \'file_put_conten...\', \'/var/www/html/v...\', 122, Array)#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents(\'/var/www/html/s...\', \'a:3:{s:6:"_toke...\', 2)#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\Filesystem\\Filesystem->put(\'/var/www/html/s...\', \'a:3:{s:6:"_toke...\', true)#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\Session\\FileSessionHandler->write(\'H8lbuTLRMiZZW4b...\', \'a:3:{s:6:"_toke...\')#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(88): Illuminate\\Session\\Store->save()#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\Session\\Middleware\\StartSession->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Foundation\\Http\\Kernel->terminateMiddleware(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#7 /var/www/html/public/index.php(58): Illuminate\\Foundation\\Http\\Kernel->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#8 {main} '))in AbstractProcessingHandler.php line 39
at AbstractProcessingHandler->handle(array('message' => 'ErrorException: file_put_contents(/var/www/html/storage/framework/sessions/H8lbuTLRMiZZW4batPjkUPxMijbMAujVS1Y9mWrw): failed to open stream: Permission denied in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122Stack trace:#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, \'file_put_conten...\', \'/var/www/html/v...\', 122, Array)#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents(\'/var/www/html/s...\', \'a:3:{s:6:"_toke...\', 2)#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\Filesystem\\Filesystem->put(\'/var/www/html/s...\', \'a:3:{s:6:"_toke...\', true)#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\Session\\FileSessionHandler->write(\'H8lbuTLRMiZZW4b...\', \'a:3:{s:6:"_toke...\')#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(88): Illuminate\\Session\\Store->save()#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\Session\\Middleware\\StartSession->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Foundation\\Http\\Kernel->terminateMiddleware(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#7 /var/www/html/public/index.php(58): Illuminate\\Foundation\\Http\\Kernel->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#8 {main}', 'context' => array(), 'level' => 400, 'level_name' => 'ERROR', 'channel' => 'local', 'datetime' => object(DateTime), 'extra' => array(), 'formatted' => '[2024-03-29 10:50:02] local.ERROR: ErrorException: file_put_contents(/var/www/html/storage/framework/sessions/H8lbuTLRMiZZW4batPjkUPxMijbMAujVS1Y9mWrw): failed to open stream: Permission denied in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122Stack trace:#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, \'file_put_conten...\', \'/var/www/html/v...\', 122, Array)#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents(\'/var/www/html/s...\', \'a:3:{s:6:"_toke...\', 2)#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\Filesystem\\Filesystem->put(\'/var/www/html/s...\', \'a:3:{s:6:"_toke...\', true)#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\Session\\FileSessionHandler->write(\'H8lbuTLRMiZZW4b...\', \'a:3:{s:6:"_toke...\')#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(88): Illuminate\\Session\\Store->save()#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\Session\\Middleware\\StartSession->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Foundation\\Http\\Kernel->terminateMiddleware(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#7 /var/www/html/public/index.php(58): Illuminate\\Foundation\\Http\\Kernel->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))#8 {main} '))in Logger.php line 344
at Logger->addRecord(400, object(ErrorException), array())in Logger.php line 707
at Logger->error(object(ErrorException), array())in Writer.php line 203
at Writer->writeLog('error', object(ErrorException), array())in Writer.php line 114
at Writer->error(object(ErrorException))in Handler.php line 71
at Handler->report(object(ErrorException))in Handler.php line 35
at Handler->report(object(ErrorException))in HandleExceptions.php line 81
at HandleExceptions->handleException(object(ErrorException))