CyberHosting

How to resolve PEAR packages path to place in php.ini for Cyber Panel

How can I find the acceptable path to include in php.ini where a PEAR library is installed for Cyber Panel?

I tried /usr/local/lsws/lsphp71/lib/php/pear/mail.php

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

require_once "Mail.php";

Error
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
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!