Just need some help on how to fix this open_basedir
restriction
I've tried to run a command php artisan
This is the error msg:
is_file(): open_basedir restriction in effect.
File(/opt/php-7.0/bin/php) is not within the allowed path(s):
(/home/u823993344:/tmp:/var/tmp:/opt/php-7.0/pear:/usr/local/bin:/etc/pki/tls/certs)
I tried setting php.ini
open_basedir = "/home/u823993344"
but still doesn't work.
Any help would be appreciated :)
Update:
i found what causes the error, its the in vendor/symfony/process/PhpExecutableFinder.php
is_file(PHP_BINARY)
PHP_BINARY
value is /opt/php-7.0/bin/php-cgi