如何解析PEAR软件包路径以放置在网络面板的php.ini中

时间:2019-09-01 16:38:07

标签: php pear pear-mail

如何在cyber Panel的php.ini中找到安装PEAR库的路径以进行更正?

我尝试了/usr/local/lsws/lsphp71/lib/php/pear/mail.php

ini_set("include_path", '/usr/local/lsws/lsphp71/lib/php/pear:'. ini_get("include_path") );

require_once "Mail.php";

错误是:

 'Opration is not Permitted'
2019-09-01 16:32:59.077794 [NOTICE] [103.79.168.215:3731:HTTP2-1] [STDERR] PHP Warning:  require_once(): open_basedir restriction in effect. File(/usr/local/lsws/lsphp71/lib/php/pear/Mail.php) is not within the allowed path(s): (/tmp:/home/alpinesoftit.com/) in /home/alpinesoftit.com/public_html/test.php on line 4
2019-09-01 16:32:59.077885 [NOTICE] [103.79.168.215:3731:HTTP2-1] [STDERR] PHP Warning:  require_once(/usr/local/lsws/lsphp71/lib/php/pear/Mail.php): failed to open stream: Operation not permitted in /home/alpinesoftit.com/public_html/test.php on line 4
2019-09-01 16:32:59.077907 [NOTICE] [103.79.168.215:3731:HTTP2-1] [STDERR] PHP Fatal error:  require_once(): Failed opening required 'Mail.php' (include_path='/usr/local/lsws/lsphp71/lib/php/pear:.:') in /home/alpinesoftit.com/public_html/test.php on line 4

0 个答案:

没有答案