open_basedir,File()不在允许的路径内 [英] open_basedir, File() is not within the allowed path
本文介绍了open_basedir,File()不在允许的路径内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在安装在Media Temple DV上的Laravel遇到问题:
I'm having an issue with Laravel, installed on a Media Temple DV:
tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/vhosts/mywebsite.com/:/tmp/)
这是导致此问题的代码:
This is the code that is giving this issue:
if (empty($this->cookie_file)) {
$this->cookie_file = tempnam("", "phrets");
}
我认为这可能是权限问题,但是我不太确定.
I'm thinking that it might be a permissions thing, but I'm really not too sure.
推荐答案
似乎您需要将使用tempnam
格式的目录添加到open_basedir
或要求服务器管理员将其关闭(
It seems you need to add directory you use form tempnam
into open_basedir
or ask your server adminsitrator to turn it off (reference)
这篇关于open_basedir,File()不在允许的路径内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文