In order to do that you would need SSH access. Then SSH to your server:
Then check if you have composer installed:
If you don’t get any output install composer:
curl -sS https://getcomposer.org/installer | php
Then move the composer.phar file to your local bin folder:
mv composer.phar ~/bin/composer.phar
Find the the path to your PHP binary:
You should get something like this:
.bashrc file add the following:
alias composer="/opt/cpanel/ea-php72/root/usr/bin/php ~/bin/composer.phar"
That way you would be able to use the
composer command without havint to specify the full path each time.
After that, you can install Drush with:
composer global require drush/drush:dev-master
Then again to save some time you could add the following alias in your .bashrc:
Run source again:
And finally drush should be available, try it by runing just:
Hope that this helps!