The php.ini settings on your host is not allowing open_basedir to be used. You'd have to fix that on your host. For more info, google php open_basedir restriction in effect
Laravel checking for executable PHP
Hey all. I'm facing a strange problem with my latest installations. When I try to run artisan commands I get this error:
'ErrorException: is_executable(): open_basedir restriction in effect. File(/usr/local/php-7.2.0/bin/php) is not within the allowed path(s): /data/sites/web/domain/www/vendor/symfony/process/PhpExecutableFinder.php on line 60.'
Line 60 in PhpExecutableFinder.php is this:
if (is_executable($php = PHP_BINDIR.('\' === DIRECTORY_SEPARATOR ? '\php.exe' : '/php'))) {
return $php;
}
I've never seen this line before so I'm assuming it's new in one of the last composer updates. Right now I'm having this issue on two completely seperate hosting companies (Combell & Domainmasters). If I comment out above check everything works as expected.
Would this be a bug? Or do I have to do something on the hosting to get this running since commenting this isn't the way to go I think?
Thanks!
Please or to participate in this conversation.