I have a relatively fresh instance of Ubuntu 16.04 running a Drupal 7 site, with php5.6 installed instead of php7. The drupal site runs well. I am trying to get drush installed so that I can easily do updates.
I have done the global install per http://docs.drush.org/en/8.x/install/
Specifically, as the ubuntu user (no root login)
wget http://files.drush.org/drush.phar
/usr/bin/php5.6 drush.phar core-status
PHP configuration : /etc/php/5.6/cli/php.ini
PHP OS : Linux
Drush script : /home/ubuntu/drush.phar
Drush version : 8.1.12
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
chmod +x drush.phar
sudo mv drush.phar /usr/bin/drush
/usr/bin/php5.6 drush --version
Could not open input file: drush
What am I missing?
which drush
output? If it outputs /usr/bin/drush, then check drush is readable.drush --version