【问题标题】:Warning open_basedir restriction in effect警告 open_basedir 限制生效
【发布时间】:2015-12-03 17:10:57
【问题描述】:

我知道到底是什么问题。我需要修复我的 open_basedir 限制。但问题是,我不知道到底是怎么回事。

PHP Warning:  is_dir(): open_basedir restriction in effect. File(/usr/local/php55/lib/php/) is not within the allowed path(s): (/home/converter/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/) in /home/converter/domains/converter.playslim.com/public_html/lib/Symfony/Component/Process/ExecutableFinder.php on line 59
PHP Warning:  is_dir(): open_basedir restriction in effect. File(/usr/local/php55/lib/php/) is not within the allowed path(s): (/home/converter/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/) in /home/converter/domains/converter.playslim.com/public_html/lib/Symfony/Component/Process/ExecutableFinder.php on line 59

【问题讨论】:

标签: effect restriction open-basedir


【解决方案1】:

用这个修改下面的代码

if (file_exists(DIR_SYSTEM . 'vendor/autoload.php')) { 
    require_once(DIR_SYSTEM . 'vendor/autoload.php'); 
}

system/startup.php:

if (is_file(DIR_SYSTEM . '../../vendor/autoload.php')) {
    require_once(DIR_SYSTEM . '../../vendor/autoload.php');
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-09-27
    • 1970-01-01
    • 2011-07-15
    • 2015-03-30
    • 1970-01-01
    • 2015-03-06
    • 2015-10-04
    • 2012-05-02
    相关资源
    最近更新 更多