OroCRM and Shell Commands

Benoit Jacquemont (Akeneo CTO (Akeneo is a PIM system build on OroBAP)) posted a few comments to this GitHub thread that, if you read between the lines, make it pretty clear OroCRM's 1.0 product will ship with parts of the system dependant on Symfony's Symfony\Component\Process\Process object. Not my product, so not my call — I hope this descision doesn't cause too much pain in the future for developers working with the platform.

Fortunatly, Benoit also provides a solution for the problem of the PhpExecutableFinder object finding the wrong executable. Setting the PHP_PATH PHP enviornmental varaible will tell the system which CLI php to use.

The easiest way to do this is to drop the folloing in your .htaccess file.

setenv PHP_PATH /usr/local/php5/bin/php

Where /usr/local/php5/bin/php is the path your PHP 5.4+ command line version.