Drush is a command line tool to manage your Drupal installations, for example to clear caches. Here’s a guide how to install and configure it 

1 Installing Drush Via PEAR

To install Drush you need PEAR – make sure it is installed on your system before continuing below

1. After confirming that PEAR works, enter

 pear channel-discover pear.drush.org

2. If PEAR is correctly installed installed you should see a message “Adding Channel Pear Drush.org Succeeded. If you don’t and you get the error ini_set() has been disabled then you need to make sure to allow ini_set in your php configuration file – typically stored at /usr/local/lib/php.ini

Adding Channel Pear Drush Org Suceeded.png

3. Now, enter pear install drush/drush – this command will actually install drush on CentOS. You can also use it on other Linux distributions

4. Drush requires Console_Table, another pear package which you can download here

5. The command to install it is pear install Console_Table-1.1.5

Pear Install Console Table.png

2 Verify Drush Works

6. Now you can run drush. To verify that drush works correctly, run sudo drush or if you’re logged in as root user: drush

7. You should now get a list of examples and parameters

3 Whereis Drush

8. Now enter whereis drush to see where drush is installed on your CentOS machine

4 Storing Config File In /etc/drush

8. Enter cd /etc/drush/ – if it does not exist yet, you can enter mkdir /etc/drush

9. Enter pico /etc/drush/drush.ini>code>. You can modify error_reporting in this file. Copy and paste this:

 error_reporting = E_ALL | E_NOTICE | E_STRICT