This commit is contained in:
parent
ce89c70d63
commit
ab0d492380
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue