Drush is a utility for advanced users who manage websites developed in Drupal.
To install Drush we recommend you to follow the steps below:
- Request access to the SSH console for your account
- Execute the following commands in the order given:
Go to the home directory:
cd
Download the Drush archive:
wget https://github.com/drush-ops/drush/archive/master.zip
Extract the archive:
unzip master.zip
Delete file:
rm master.zip
Correct the permissions in the file:
chmod u+x drush/drush
Create the Drush alias by editing the .bashrc file in the home directory:
nano ~/.bashrc -or- vim ~/.bashrc
Add the following line at the bottom of the .bashrc file:
alias drush='~/drush/drush'
Reload your profile:
source ~/.bashrc
Install / configure composer
Modify in the Drush work directory:
cd drush
Download, Install and Update the Composer:
curl -sS https://getcomposer.org/installer | php
php composer.phar update
php composer.phar install
Test to verify operation:
drush core-status
After entering the last command, Drush should work correctly. Make sure the PHP shell_exec function is active.
If you encounter any problems in applying the above instructions, please contact us. HostX offers the fastest Linux VPS servers and can assist you in solving your problems.
