Drush is a command‑line shell and scripting interface for Drupal. It allows you to manage Drupal sites more efficiently by running commands for updates, backups, and administration tasks. On ruachost.com, you can install Drush manually if it is not already available through your hosting environment.

 

Why Install Drush?

  • Automate repetitive Drupal tasks.

  • Manage modules and themes quickly.

  • Run database updates and clear caches from the command line.

  • Improve productivity for developers and site administrators.

 

Steps to Install Drush Manually

Step 1: Connect to Your Server

  1. Log in to your hosting account at ruachost.com.

  2. Access your server via SSH (Secure Shell).

 

Step 2: Download Drush

  1. Navigate to your desired installation directory (e.g., /usr/local/share).

  2. Clone the Drush repository from GitHub:

    Bash
    
    git clone https://github.com/drush-ops/drush.git
    
     
  3. Move into the Drush directory:

    Bash
    
    cd drush
    
 

Step 3: Set Up Drush

  1. Checkout the version compatible with your Drupal installation:

    Bash
    
    git checkout 10.x
    


    (Replace
    10.x with the version you need.)

  2. Install dependencies using Composer:

    Bash
    
    composer install
    

     

Step 4: Configure System Path

  1. Add Drush to your system path so it can be run globally:

    Bash
    
    ln -s /usr/local/share/drush/drush /usr/local/bin/drush
    
  2. Verify installation:

    Bash
    
    drush --version
    

✅ Drush is now installed and ready to use.

 

Important Notes

  • Ensure Composer is installed before running Drush.

  • Always match Drush version with your Drupal version.

  • Use SSH access with sufficient permissions to install globally.

Esta resposta foi útil? 0 Os usuários acharam isso útil (0 Votos)

Powered by WHMCompleteSolution