gpt4 book ai didi

php - 连接到本地主机时 Laravel 5 '..failed to open stream: Permission denied' 异常

转载 作者:可可西里 更新时间:2023-11-01 12:53:13 24 4
gpt4 key购买 nike

<分区>

已经设置了一个项目,当尝试连接到本地主机时,我在控制台中收到此错误:

[Wed Aug 12 21:26:46 2015] 127.0.0.1:50079 [500]: / - Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/CT/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in /CT/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87 Stack trace: 0 /CT/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\StreamHandler->write(Array) 1 /CT/vendor/monolog/monolog/src/Monolog/Logger.php(289): Monolog\Handler\AbstractProcessingHandler->handle(Array) 2 /CT/vendor/monolog/monolog/src/Monolog/Logger.php(565): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array) 3 /CT/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(49): Monolog\Logger->error(Object(UnexpectedValueException)) 4 /CT/app/Exceptions/Handler.php(30): Illuminate\Foundation\Exceptions\Handler->report(Object(UnexpectedValueException)) 5 /CT/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(79): App\Exceptions\Handler->report(Ob in /CT/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 87

我已经按照其他人的说明在问题文件夹上递归调用 chmod 777(尽管这是不好的做法),但仍然没有成功。

这似乎是一个相当普遍的问题,但我找不到任何有用的东西。

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com