警告:require_once():open_basedir限制生效

时间:2016-10-09 09:12:59

标签: php path

我收到此错误我试图更改所有文件和文件夹的权限没有发生我试图使用dirname(文件)但没有任何事情发生有没有人可以帮助我???

Warning: require_once(): open_basedir restriction in effect. File(/home/zadmin/public_html/XXXXXXXX/loader.php) is not within the allowed path(s): (/home/zadmin/public_html/XXXXXXXXXXXX/htdocs:/var/zpanel/temp/) in /home/zadmin/public_html/XXXXXXXXXXXXXX/htdocs/loader.php on line 10

Warning: require_once(/home/zadmin/public_html/XXXXXXXXXX/loader.php): failed to open stream: Operation not permitted in /home/zadmin/public_html/XXXXXXXXXXXXXXXXXX/htdocs/loader.php on line 10

Fatal error: require_once(): Failed opening required '/home/zadmin/public_html/XXXXXXXXXXXXXX/loader.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/zadmin/public_html/XXXXXXXXXXXXXXXXXX/htdocs/loader.php on line 10

1 个答案:

答案 0 :(得分:0)

您只能访问open_basedir指令中设置的文件,/home/zadmin/public_html/XXXXXXXXXXXX/htdocs/var/zpanel/temp/

如果您需要直接从/home/zadmin/public_html/XXXXXXXXXXXX加载文件,请相应地设置open_basedir指令或联系您的托管服务提供商为您设置。