我在安装在 Media Temple DV 上的 Laravel 遇到问题:
tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/vhosts/mywebsite.com/:/tmp/)
这是给出此问题的代码:
if (empty($this->cookie_file)) {
$this->cookie_file = tempnam("", "phrets");
}
我在想这可能是一个权限问题,但我真的不太确定。
最佳答案
看来您需要添加使用表单 tempnam
的目录进入 open_basedir
或要求您的服务器管理员将其关闭 (reference)
关于php - open_basedir,File() 不在允许的路径内,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46343396/