• TechOps

    Need clarity?
    Chat with our experts now

    • Web Hosting SupportWeb Hosting Support
    • Helpdesk Support

      Skilled and professional 24/7 helpdesk support

    • Product Support

      Boost your product support with our expertise

    • Managed ServicesManaged Services
    • Server Management

      Don't let server issues slow you down. Let us manage them for you

    • Server Monitoring

      Safeguard your server health with our comprehensive monitoring solutions

    • Staff AugmentationStaff Augmentation
    • Hire an Admin

      Transform your business operations with our expert administrative support

    • Hire a Team

      Augment your workforce with highly skilled professional from our diverse talent pool

  • CloudOps

    Confused?
    Discuss with our sales team now.

    • Author ProfileAWS
      Well Architected Review
    • Author ProfileFinOps As a Service

      FinOps As a Service

    • Migrate

      Upgrade the journey: Migrate & Modernize seamlessly

    • Modernize

      Effortless CloudOps mastery for seamless cloud management

    • Optimize

      Efficient CloudOps: Boosting performance through optimization

    • Manage

      Simplify compliance complexities with our dedicated service

  • DevOps

    How Supportsages
    is creating an
    impact?

    View Casestudies
    • Author Profile24/7 DevOps As a Service

      Round-the-clock DevOps for uninterrupted efficiency

    • Author ProfileCI/CD Pipeline

      Automated CI/CD pipeline for seamless deployments

    • Author ProfileInfrastructure As a Code

      Crafting infrastructure with ingenious code

    • Author ProfileDevSecOps

      Integrated security in continuous DevOps practices

    • Author ProfileHire DevOps Engineers

      Level up your team with DevOps visionaries

    • Author ProfileConsulting Services

      Navigate success with expert DevOps consulting

  • SecOps

    Expert SecOps Services
    for any Scale

    • Author ProfileVAPT

      Vulnerability Assessment and Penetration Testing

    • Author ProfileSource Code Review

      Ensuring source code security and safe practices to reduce risks

    • Author ProfileSecurity Consultation

      On demand services for improving server security

    • Author ProfileSystem Hardening

      Reduced vulnerability and proactive protection

    • Author ProfileManaged SOC

      Monitors and maintains system security. Quick response on incidents

    • Author ProfileCompliance as a Service

      Regulatory compliance, reduced risk

  • Insights

    Explore our latest
    insights and resources

    Blog

    Explore our latest articles and insights

    Case Studies

    Read about our client success stories

  • Contact Us

  • About
  • Certifications
  • Life at Supportsages
  • Events
  • Contact
  • Careers
  • Blog

  • Dedicated Support Team
  • Quasi-dedicated Support Team
  • Hire a DevOps Engineer
  • Hire a Billing Support Staff
  • Per-ticket Support Plan
  • Managed Services

  • Microsoft Azure Expert
  • AWS Cloud Expert
  • Hire a developer
SS

SupportSages

Bites of wisdom @ work


Copyright © 2008 - 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy

Install Drush for Drupal on a Linux Server

Gary Griffith

  • 2 min read
Install Drush for Drupal on a Linux Server

Generating audio, please wait...

The word Drush stands for DRUpal SHell and it is a command line utility used to communicate to Drupal CMS. For one who enjoy working from the shell, installing Drush is going to save your time for sure. Drush allows you to install/configure modules and themes without logging to your Drupal dashboard. Drush can be used for troubleshooting errors and for regular maintenance/updates.

You can follow the below steps to install Drush on your cPanel account.

Step1: Login to your your server using SSH.

Step2: Installing composer

Check whether you have composer installed already:

[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-blue-border” border_style=”bordered”]which composer[/otw_shortcode_info_box]

If not installed already, install it using the below command:

[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-blue-border” border_style=”bordered”]curl -sS https://getcomposer.org/installer | php[/otw_shortcode_info_box]
Then move the composer.phar file to your bin folder using the below command:
[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-blue-border” border_style=”bordered”]mv composer.phar ~/bin/composer.phar[/otw_shortcode_info_box]
Then open your .bashrc file and add the following:
[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-blue-border” border_style=”bordered”]alias composer=”php ~/bin/composer.phar”[/otw_shortcode_info_box]

Then run the following command:

[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-blue-border” border_style=”bordered”]source ~/.barhrc [/otw_shortcode_info_box]
The above command will reloads your .bashrc file so it’s available immediately and now by that way you would be able to use the composer command without specifying the full path each time.
Step3: Installing Drush
[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-blue-border” border_style=”bordered”]composer global require drush/drush:dev-master[/otw_shortcode_info_box]
Then again, add the following alias in your .bashrc:
[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-blue-border” border_style=”bordered”]alias drush=”~/.config/composer/vendor/bin/drush” [/otw_shortcode_info_box]

Then run the below command:

[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-blue-border” border_style=”bordered”]source ~/.barhrc [/otw_shortcode_info_box]

And finally its done. Now drush should be available and try it by running just the drush command:

[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-blue-border” border_style=”bordered”]drush [/otw_shortcode_info_box]
  • Linux

Looking for AWS Experts?

We provide top-of-the-line custom AWS setup services tailored to your needs.

Install Drush for Drupal on a Linux Server

How to add an email signature in Horde email client?

How to add an email signature in Horde email client?
  • Email service
logo

How to Disable directory listing for your website via cPanel?

How to Disable directory listing for your website via cPanel?
  • cPanel
logo

Posts by Gary Griffith

Gary Griffith is working as System Engineer at SupportSages for the last two years. He is very passionate about Linux and server management and always interested in the emerging cloud technologies. Apart from work, he is very interested in cooking and music.