From ab0d4923800dcd14331bbb213edb87e1fd03f8b5 Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Mon, 18 Aug 2025 09:15:19 +0800 Subject: [PATCH] 11 --- public/index.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/public/index.php b/public/index.php index 1c371a0..cc46f0a 100644 --- a/public/index.php +++ b/public/index.php @@ -5,24 +5,6 @@ use support\App; - - -// 尝试手动创建日志文件并赋予权限(仅在有目录权限时有效) -$logFile = '/runtime/logs/webman-' . date('Y-m-d') . '.log'; -if (!file_exists($logFile)) { - // 创建文件 - touch($logFile); - // 尝试设置权限(可能需要服务器用户权限) - chmod($logFile, 0666); -}else { - if(!is_writable($logFile)) { - chmod($logFile, 0666); - } -} - - - - chdir(__DIR__); require_once __DIR__ . '/../vendor/autoload.php';