[Drupal] How to make drush work on PHP CLI versions less than 5.3
Drupal drush will work with php version 5.3 or greater. Is some situation default installed version may be less than 5.3. Read on to know how make drush work on PHP CLI versions less than 5.3
We faced one php version issue when i have installed drush on a hosting server
Although Apache uses latest php version 5.4 but PHP command line shows a different version
php 4.8 due to this drush did not worked.
Fortunately we have ssh access to the server and we found PHP CLI make use of default version 4.8
but there are latest php version available in the server so we made alias to latest test version
below bash command will show how we can set alias for drush
echo "alias drush='/usr/local/php5/bin/php ~/drush/drush.php'" >> ~/.bash_profile
source .bash_profile
after this test your php version from the command line
php --version
After the above steps drush works for me. Hope this article will help you solve the php version issue while installing the drush