2015-12-03 94 views
1

我知道究竟是什么问题。我需要解决我的open_basedir限制。但问题是,我不知道究竟如何。警告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 
+0

嗨,永远记住谷歌错误信息第一次! “警告open_basedir限制有效”会产生大量结果;第一击就是在这个网站上。 –

+0

可能出现[打开\ _basedir限制生效。文件(/)不在允许的路径中:](http://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-路径) –

+0

这并没有帮助解决我的问题。 –

回答

0

变化这一个

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'); 
} 
相关问题