PHP error: open_basedir restriction in effect

▼魔方 西西 提交于 2019-12-08 04:05:26

open_basedir is a PHP option restricting PHP's access to specific directories.

You have the directory /usr/share/php in your include path without having access to it. Usually, PHP tries all paths in the include_path one by one. This means that PHP cannot find the file Auth/Yubico.php in the current directory, so PHP searches in /usr/share/php next.

Make sure that the file you want to include is actually there. You can also remove /usr/share/php from your include path (either by editing the php.ini file, if you have access to it, otherwhise using the ini_set()method).

Using an explicit path to the file you want to include causes PHP to skip the directory scanning causing the error:

require_once dirname(__FILE__) . '/Auth/Yubico.php';
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!