MDClub
首页
注册

nginx路径修改到mdclub后报错

天涯s喵
2022-03-23 09:53:23

nginx路径修改到mdclub后报错Fatal error: Uncaught UnexpectedValueException: There is no existing directory at "/opt/mdclub-v1.0.1/config/../var/logs/2022-03" and it could not be created: Permission denied in /opt/mdclub-v1.0.1/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:172 Stack trace: #0 /opt/mdclub-v1.0.1/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(100): Monolog\Handler\StreamHandler->createDir() #1 /opt/mdclub-v1.0.1/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(42): Monolog\Handler\StreamHandler->write(Array) #2 /opt/mdclub-v1.0.1/vendor/monolog/monolog/src/Monolog/Logger.php(325): Monolog\Handler\AbstractProcessingHandler->handle(Array) #3 /opt/mdclub-v1.0.1/vendor/monolog/monolog/src/Monolog/Logger.php(543): Monolog\Logger->addRecord(400, 'Route collector...', Array) #4 [internal function]: Monolog\Logger->error('Route collector...', Array) #5 /opt/mdclub-v1.0.1/src/Initializer/App.php(116): call_user_func_array(Array, Array) #6 /opt/mdclub-v1.0.1/src/Initializer/Facade.php(21): MDC in /opt/mdclub-v1.0.1/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 172


Fatal error: Uncaught ErrorException: Trying to access array offset on value of type bool in /opt/mdclub-v1.0.1/src/Initializer/Error.php:52 Stack trace: #0 /opt/mdclub-v1.0.1/src/Initializer/Error.php(52): MDClub\Initializer\Error->appError(8, 'Trying to acces...', '/opt/mdclub-v1....', 52, Array) #1 [internal function]: MDClub\Initializer\Error->appShutdown() #2 {main} thrown in /opt/mdclub-v1.0.1/src/Initializer/Error.php on line 52 应该怎么处理呢