Core icon indicating copy to clipboard operation
Core copied to clipboard

Use env command to locate php executable path for compatibility

Open eggplants opened this issue 7 months ago • 0 comments

In php official Docker image php executable path is /usr/local/bin/php.

For compatibility /usr/bin/php / /usr/bin/php -f should be changed into /usr/bin/env php / /usr/bin/env -S php -f.

I fixed them with:

grep -lr '/usr/bin/php' | xargs sed -r -i 's;/usr/bin/php( -f)?;/usr/bin/env -S php -f;'

eggplants avatar May 25 '25 14:05 eggplants