MacのMAMP PROが4.4.1にアップデートされて実行後、drushが走らないのが分かった。
コマンドラインで「which php」を実行。
/usr/local/bin/php
~/.bash_profileを修正する。
php5.6系は5.6.32でデフォルトは7.1.12。7.2系は7.2.1になったので修正する。
export PATH=/Applications/MAMP/bin/php/php7.1.12/bin:$PATH
source ~/.bash_profileで設定を反映させる。
$ drush st
Drupal version : 8.5.0
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database port : 3306
Database username : root
Database name : d850
Database : Connected
Drupal bootstrap : 成功
Drupal user :
Default theme : bartik
Administration theme : seven
PHP executable : /Applications/MAMP/bin/php/php7.1.12/bin/php
PHP configuration : /Applications/MAMP/bin/php/php7.1.12/conf/php.ini
PHP OS : Darwin
Drush script : /Users/*****/.composer/vendor/drush/drush/drush.php
Drush version : 8.1.15
Drush temp directory : /tmp
Drush configuration :
Drush alias files : /Users/*****/.drush/docker.aliases.drushrc.php
Install profile : standard
Drupal root : /Users/*****/MAMP/d850
Drupal Settings File : sites/default/settings.php
Site path : sites/default
File directory path : sites/default/files
Temporary file directory path : /Applications/MAMP/tmp/php
Sync config path : sites/default/files/config_-ZMMr8ZR9lq8k_JzbWOo3xakdU1rIK-0VRMHLwgeNwUknRUKH2Kh32G2EiyXqlzSSXxbqCZxCA/sync