如何在 php、CentOs 中打开对 PEAR 目录的访问?

如何在 php、CentOs 中打开对 PEAR 目录的访问?

/home/admin/tmp是 admin admin -rwrw...
/usr/share/pear/PEAR.php是 admin admin -rwrw...
sys_temp_dir在 php.ini 文件中删除了它!

    Warning: require_once(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/admin/web/domain/public_html:/home/admin/tmp) in /home/admin/web/domain/public_html/w/vendor/autoload.php on line 8

Warning: require_once(/usr/share/pear/PEAR.php): failed to open stream: Operation not permitted in /home/admin/web/domain/public_html/w/vendor/autoload.php on line 8

答案1

您需要open_basedir在您的 中更新php.ini以包含/usr/share/PEAR

相关内容