2013-04-24 28 views
2

限制我有下面的儀表盤頁面上此Opencart的錯誤...Opencart的儀表盤錯誤 - fopen()函數:open_basedir的有效

Warning: fopen(): open_basedir restriction in effect. 
File(/var/www/vhosts/domainname.com/shop/download/test) is not within the allowed path(s): 
(/var/www/vhosts/Cloud2.chrisames.co.uk/:/tmp/) in 
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line 99Warning: 
fopen(/var/www/vhosts/domainname.com/shop/download/test): failed to open stream: 
Operation not permitted in 
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line 99Warning: 
fwrite() expects parameter 1 to be resource, boolean given in 
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line 
101Warning: fclose() expects parameter 1 to be resource, boolean given in 
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line 
103Warning: file_exists(): open_basedir restriction in effect. 
File(/var/www/vhosts/domainname.com/shop/download/test) is not within the allowed 
path(s): (/var/www/vhosts/Cloud2.chrisames.co.uk/:/tmp/) in 
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line 
105Warning: sprintf(): Too few arguments in 
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line 106 

最欣賞的任何幫助:)

+1

你在你的服務器上設置了'open_basedir'限制,並且OpenCart沒有**寫**訪問這個目錄'/var/www/vhosts/domainname.com/shop/download/ '。無論這個路徑添加到'open_basedir'指令或嘗試將權限設置爲'775'或'777'(但我想'chmod'不會在這種情況下工作)。 – shadyyx 2013-04-24 09:37:19

+0

感謝shadyyx,我已經得到了到我的託管公司,他們正在解決這個對我來說:) – Amesey 2013-04-24 09:57:39

+1

以供將來參考,如果你有FTP訪問,你可以從程序的像FileZilla中做到這一點。這將節省你很多來回與您的託管公司:) [Filezilla的說明](http://www.cubecartforums.org/docs/appendix/how-to-chmod-directories.html) – Andy 2013-08-01 19:19:03

回答