OpenCart仪表板错误 - fopen():open_basedir限制生效

时间:2013-04-24 09:14:27

标签: opencart

我在下面的信息中心页面上有这个OpenCart错误...

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 个答案:

答案 0 :(得分:-2)

使用FileZilla Client(免费软件,下载并安装https://filezilla-project.org/download.php?type=client或从此处下载http://sourceforge.net/projects/filezilla/)...然后Chmod目录和文件...... 设置目录755,文件644.(服务器有自己的权限规则,但现在通常都是这样。)

这将为你解决