PHP-FPM can't resolve getenv('PATH')
while PHP-CLI can.
This causes binaries to not be found when attempting to invoke directly from within a Laravel controller.
Copying system level PATH=
variable into project .env
file is a workaround.
- https://twitter.com/ShengSlogar/status/1471168207184564226
- laravel/valet#887
- https://kenfavors.com/code/how-to-upgrade-to-php7-4-fpm-in-ubuntu-16-04-18-04/
- https://mattallan.me/posts/how-php-environment-variables-actually-work/
- docker-library/php#74
- https://stackoverflow.com/a/35708931/2535504
- https://symfony.com/doc/current/components/process.html#finding-the-executable-php-binary