I’m on an Ubuntu shared server hosted at pair.com. Their default php version is 7.4, but I was able to change it to 8 for Drupal in my .htaccess and Drupal 9 works fine. My composer specifies php8 and drush 11.
Problem is, when I run drush, it thinks I’m using PHP 7.4:
$ ../vendor/bin/drush Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.28.
In my .bashrc, I set DRUSH_PHP to their php 8 binary:
export DRUSH_PHP='/usr/local/bin/php8'
but it is still trying to use 7.4 – I thought DRUAH_PHP would solve this but it didn’t – is there another way to override the PHP version?