在VestaCP我有错误open_basedir for php

时间:2017-10-22 12:30:17

标签: php

我使用的是VestaCP(最新版本),但我在php语法中有错误,这是我的日志部分:

[Sun Oct 22 18:45:42.419871 2017] [:error] [pid 10240] [client {IP}:{PORT}] PHP Warning:  require_once(): open_basedir restriction in effect. File(/home/web/linggacargo.id/framework/server.php) is not within the allowed path(s): (/home/web/linggacargo.id/public_html:/home/lingga_cargo/tmp) in /home/web/linggacargo.id/public_html/administrator/index.php on line 2

[Sun Oct 22 18:45:42.419964 2017] [:error] [pid 10240] [client {IP}:{PORT}] PHP Warning:  require_once(/home/web/linggacargo.id/framework/server.php): failed to open stream: Operation not permitted in /home/web/linggacargo.id/public_html/administrator/index.php on line 2

[Sun Oct 22 18:45:42.419982 2017] [:error] [pid 10240] [client {IP}:{PORT}] PHP Fatal error:  require_once(): Failed opening required '../../framework/server.php' (include_path='.:/usr/share/php') in /home/web/linggacargo.id/public_html/administrator/index.php on line 2

我不知道为什么,我在谷歌搜索过,我知道(也许)我的问题是 open_basedir ,为什么?,我已经从;open_basedir =更改了php.ini open_basedir =但是不工作,老实说,我无法理解这是什么。

如何解决?谢谢你!

0 个答案:

没有答案