Phabricator Arcanist有错误ini_set(): open_basedir限制生效.File()不在允


Phabricator Arcanist has errors ini_set(): open_basedir restriction in effect. File() is not within the allowed path(s)

我正在运行最新的Arch Linux

我看过这样的话题:

  • Unlink失败->open_basedir issue警告:unlink() [function。[Unlink]: open_basedir限制生效。文件()不在允许的路径内:
  • open_basedir限制生效。文件(/)不在允许的路径内:

这些建议编辑php.ini,将我需要的目录添加到open_basedir。我已经试过完全注释open_basedir这工作,但我担心安全影响。

如何找到需要添加到open_basedir的文件?

目前我有:

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/

编辑:我看了一个同事的ubuntu ini文件,他在那里有open_basedir表达式——所以它一定是写得很差(即不支持安全操作)

多年来,许多用户试图在不受欢迎的托管环境中安装Phabricator,因此引入了一个限制,以减少这些用户报告的垃圾错误数量:

https://we.phorge.it/rP105be01d5f74f4fdff39801bd7551b758c350eef

简而言之,没有。不支持Open Basedir

有一个关于该主题的任务,在2021年启动,并设置为最低优先级:

https://we.phorge.it/T15065

所以我只能建议在此期间禁用Phabricator的虚拟主机的限制。或者,加入该任务并分享您在启用该限制时的积极经验,以及您如何解决相关问题。