MediaWiki无权限

定义mw中luastandalone的errorFile(Lua模块错误日志输出)后,编辑Lua模块页面时,只要定义的该错误日志的根目录存在均报以下错误(这里定义的目录是"/awa.log")

proc_open(/awa.log): Failed to open stream: Permission denied
如果不存在是报目录不存在
0777和1000也报,上下目录设0777和1000也报,真不知道怎么搞了
会是php的问题吗,没禁用proc_open,也没设open_basedir
新站点仍旧,环境php8.2.10
没测php7,更新之后就一直装不上

MedisWiki 是创建的 运行环境 网站还是自己制作的 本地应用

运行环境

看了一下,是这一段运行的时候出现了问题

	$this->proc = proc_open(
		$cmd,
		[
			[ 'pipe', 'r' ],
			[ 'pipe', 'w' ],
			[ 'file', $options['errorFile'], 'a' ]
		],
		$pipes );
	if ( !$this->proc ) {
		$err = error_get_last();
		if ( !empty( $err['message'] ) ) {
			throw $this->engine->newException( 'scribunto-luastandalone-proc-error-msg',
				[ 'args' => [ $err['message'] ] ] );
		} else {
			throw $this->engine->newException( 'scribunto-luastandalone-proc-error' );
		}
	}
	$this->writePipe = $pipes[0];
	$this->readPipe = $pipes[1];
}

自行解决了,php需要使用./
默认运行在$wgResourceBasePath下不需要加$wgResourceBasePath/
跳基础坑了(