open_basedir,File()不在允许的路径内


open_basedir, File() is not within the allowed path

安装在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中,或者要求服务器管理员关闭(引用)