Page 1 of 1

How do you fix require_once(): open_basedir restriction in effect with VestaCP?

Posted: Thu Apr 29, 2021 7:03 pm
by annahernandez99
With my CentOS VestaCP installation I can't get it to see pear

require_once ("System.php"); // for pear
Errors with:

Warning: require_once(): open_basedir restriction in effect. File(/usr/share/pear/System.php) is not within the allowed path(s): (/home/$my_account/web/$my_domain/public_html:/home/$my_account/tmp) in /home/$my_account/web/$my_domain/public_html/smtp/test-pear.php on line 34
Ideas?
yesornogenerator

Re: How do you fix require_once(): open_basedir restriction in effect with VestaCP?

Posted: Thu Apr 29, 2021 10:15 pm
by grayfolk
annahernandez99 wrote:
Thu Apr 29, 2021 7:03 pm
With my CentOS VestaCP installation I can't get it to see pear

require_once ("System.php"); // for pear
Errors with:

Warning: require_once(): open_basedir restriction in effect. File(/usr/share/pear/System.php) is not within the allowed path(s): (/home/$my_account/web/$my_domain/public_html:/home/$my_account/tmp) in /home/$my_account/web/$my_domain/public_html/smtp/test-pear.php on line 34
Ideas?
Try to use search first.
search.php?keywords=open_basedir