0

我在安装在 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");
}

我在想这可能是一个权限问题,但我真的不太确定。

4

1 回答 1

2

您似乎需要将使用表单的目录添加tempnamopen_basedir或要求您的服务器管理员将其关闭(参考

于 2014-10-17T06:26:54.207 回答