Laravel error

Fatal error: Uncaught exception ‘UnexpectedValueException’ with message ‘The stream or file “/opt/bitnami/apache2/htdocs/back-end/storage/logs/laravel-2015-07-09.log” could not be opened: failed to open stream: Permission denied’ in /opt/bitnami/apache2/htdocs/back-end/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:84 Stack trace: #0 /opt/bitnami/apache2/htdocs/back-end/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(88): Monolog\Handler\StreamHandler->write(Array) #1 /opt/bitnami/apache2/htdocs/back-end/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler->write(Array) #2 /opt/bitnami/apache2/htdocs/back-end/vendor/monolog/monolog/src/Monolog/Logger.php(269): Monolog\Handler\AbstractProcessingHandler->handle(Array) #3 /opt/bitnami/apache2/htdocs/back-end/vendor/monolog/monolog/src/Monolog/Logger.php(545): Monolog\Logger->addRecord(400, ‘exception ‘Unex…’, Array) #4 /opt/bitnami/apache2/htdocs/back-end/vendor/laravel/framework/ in /opt/bitnami/apache2/htdocs/back-end/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 84

013ac2834ad536704fe4cf66c2f6078d[1]

looks like this line usually fixes this

rm -f storage/logs/*
sudo chown -R daemon /opt/bitnami/apache2/htdocs/back-end/

a1e7fbf13bd6ca149b7fe33bc38cc514

BUT laravel has added a log after this line resulting in a permissions error

The error is because you cannot use closures on laravel 5 route caching.

0d8dfddec59c8f1178c8c23bb5910cb6

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *