Comments

ñull’s picture

Looks like modern versions of drush (mine is 8.01) don't respect the DRUSH_PHP any longer. What is the alternative alias?

zd370’s picture

Add an alias in .bash_profile or .profile in your home directory.

alias drush='/path-to-php /path-to-.composer/vendor/bin/drush'
ckoharj’s picture

Hi,
I'm successfully using this to run php version 5.5
when I run command drush status it says version is 5.5
same thing when I run command php -v

But when I run drush up and it updates a module it disables schema.org metatag.
Message is:
Schema.org Metatag requires at least PHP 5.5. (Currently using PHP [warning] 5.4.45)

I can not figure out where it is still seeing the older php version.

The only thing I noticed is when I run command which php it does not display a path.
Before I updated my .bash_profile and .bashrc files it displayed the path usr/bin/php-cli
That would be the default ver 5.4.45

So maybe I am missing something in one of those files?

Thanks