When using pear from shell php not found
When trying to run ./pear you get this or similar error message:
$ ./pear mage-setup Running initial setup... exec: 94: php: not foundThe issue is that each *NIX setup can have PHP executable located in different place, and you will need to edit ./pear file to accomodate this. Just replace:
MAGE_PEAR_PHP_BIN="/usr/local/bin/php"With your location of PHP CLI executable and you should be good to go. Another thing to watch is that your PHP CLI should have the same configuration and php extensions as PHP used in webservice, to avoid issues with PEAR package php extension dependencies.