我在使用安装在 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
into open_basedir
或要求您的服务器管理员将其关闭(参考 http://php.net/manual/en/ini.core.php#ini.open-basedir)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)