this error:
Apr 25 08:27:25 vm nginx[9902]: #1 /usr/share/nginx/html/laravel/vendor/monolog/monolog/src/Monolog/Logger.php(336): Monolog\Handler\AbstractProcessingHandler->handle(Array)
Apr 25 08:27:25 vm nginx[9902]: #2 /usr/share/nginx/html/laravel/vendor/monolog/monolog/src/Monolog/Logger.php(615): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array)
Apr 25 08:27:25 vm nginx[9902]: #3 /usr/share/nginx/html/laravel/vendor/laravel/framework/src/Illuminate/Log/Writer.php(202): Monolog\Logger->error(Object(UnexpectedValueException), Array)
Apr 25 08:27:25 vm nginx[9902]: #4 /usr/share/nginx/html/laravel/vendor/laravel/framework/src/Illum...
Apr 25 08:27:25 vm nginx[9902]: PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/usr/share/nginx/html/laravel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /usr/share/nginx/html/laravel/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:97
Apr 25 08:27:25 vm nginx[9902]: Stack trace:
Apr 25 08:27:25 vm nginx[9902]: #0 /usr/share/nginx/html/laravel/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\StreamHandler->write(Array)
Apr 25 08:27:25 vm nginx[9902]: #1 /usr/share/nginx/html/laravel/vendor/monolog/monolog/src/Monolog/Logger.php(336): Monolog\Handler\AbstractProcessingHandler->handle(Array)
Apr 25 08:27:25 vm nginx[9902]: #2 /usr/share/nginx/html/laravel/vendor/monolog/monolog/src/Monolog/Logger.php(615): Monolog\Logger->addRecord(400, Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)
Apr 25 08:27:25 vm nginx[9902]: #3 /usr/share/nginx/html/laravel/vendor/laravel/framework/src/Illuminate/Log/Writer.php(202): Monolog\Logger->error(Object(Symfony\Compone
How to Solved Laravel vendor/monolog/monolog ?
1. Open Terminal
2. go to path laravel (example : /usr/share/nginx/html/laravel)
cd /usr/share/nginx/html/laravel3. Change Permission Storage to 777 with recursive mode.
chmod -R 777 storageor
sudo chmod -R 777 storage
0 comments:
Post a Comment