How To Install Drush for Drupal on CentOS 7

Install Drush for Drupal on CentOS 7

In this tutorial, we will show you how to install Drush for Drupal on your CentOS 7 server. For those of you who didn’t know, Drush is “a command-line shell and scripting interface for Drupal. ” It is short for Drupal Shell. It’s possible to use Drush to get into Drupal, set up Drupal with a default or custom install profile, manage Drupal modules, sync a local Drupal website with distant staging and production servers, and a lot more.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation of Drush for Drupal on a CentOS 7 server.

Install Drush for Drupal on CentOS 7

Step 1. First, let’s start by ensuring your system is up-to-date.

Step 2. Installing Drush.

Method 1.

  1. Install Composer.
  2. Installing Drush CLI for Drupal on CentOS.

If you want to install a specific version of Drush follow the below command. For example Drush 7.1.0:

Verify Drush using the below command:

Update the latest release:

Method 2.

Run the below command to install pear:

Now run the following command to allow pear to recognize drush:

Then install Drush using the below command:

Verify Drush using the below command:

Congratulations! You have successfully installed Drush for Drupal. Thanks for using this tutorial for installing Drush for Drupal on your CentOS 7 system. For additional help or useful information, we recommend you to check the official Drush for Drupal website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

Save

Save