2015-12-03 631 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'); 
} 
相關問題