We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
How do you fix require_once(): open_basedir restriction in effect with VestaCP?
-
- Posts: 5
- Joined: Sat Jan 09, 2021 7:59 am
- Os: Ubuntu 14x
- Web: apache
How do you fix require_once(): open_basedir restriction in effect with VestaCP?
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
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
Last edited by annahernandez99 on Fri Apr 30, 2021 7:15 pm, edited 1 time in total.
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: How do you fix require_once(): open_basedir restriction in effect with VestaCP?
Try to use search first.annahernandez99 wrote: ↑Thu Apr 29, 2021 7:03 pmWith 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?
search.php?keywords=open_basedir