【问题标题】:open_basedir restriction error in codeignitercodeigniter 中的 open_basedir 限制错误
【发布时间】:2011-05-09 06:28:44
【问题描述】:

我不知道如何解决这个问题:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. 
File(./codeigniter/logs/log-2010-11-12.php) is not within the allowed path(s): 
(/var/www/vhosts/example.com/httpdocs:/tmp) in 
/var/www/vhosts/example.com/httpdocs/codeigniter/libraries/Log.php on line 92

【问题讨论】:

    标签: php apache codeigniter open-basedir


    【解决方案1】:

    open_basedir 意味着 php 仅限于它可以包含文件的文件夹。基本上您尝试获取的文件无法访问,您需要移动它或更改您的 php 设置

    【讨论】:

    • 但是那个文件不是在 httpdocs 文件夹里面,所以不应该允许吗?
    猜你喜欢
    • 2012-05-26
    • 2013-01-06
    • 1970-01-01
    • 2011-01-27
    • 2015-05-29
    • 2011-03-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多