{"id":20096,"date":"2024-05-28T06:43:47","date_gmt":"2024-05-28T06:43:47","guid":{"rendered":"https:\/\/hostvento.com\/kb\/web-hosting\/getting-started-guide\/how-to-use-the-knowledge-base\/how-to-install-drush-manually\/"},"modified":"2024-06-17T09:42:34","modified_gmt":"2024-06-17T09:42:34","slug":"how-to-install-drush-manually","status":"publish","type":"docs","link":"https:\/\/www.hostvento.com\/kb\/docs\/hosting-faqs\/how-to-install-drush-manually\/","title":{"rendered":"How to Install Drush Manually?"},"content":{"rendered":"\n<p>Drupal websites may be managed, controlled, and altered using Drush, a shell-based computer program.<\/p>\n\n\n\n<p>A composer is a PHP dependency management used by the Drush installation process. Therefore, before installing Drush, you must install composer on your account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"># Steps to install Drush :<\/h2>\n\n\n\n<p>1. Log in to your account using SSH.<\/p>\n\n\n\n<p>2. Select the Drush version that you wish to install :<\/p>\n\n\n\n<p>Install Drush 8 by typing following command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">composer global require drush\/drush: 8. x<\/pre>\n\n\n\n<p>Install Drush 7 by typing following command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">composer global require drush\/drush: 7. x<\/pre>\n\n\n\n<p>3. Now determine the CentOS version used on your server by typing following command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">uname -r<\/pre>\n\n\n\n<p>If you get an output of this command containing eI7 (for example, 3.10.0-714.10.2.Ive1.5.9.el7.x86_64), then your server is running CentOS7.<\/p>\n\n\n\n<p>If you get an output of this command containing eI6 (for example, 2.6.32-673.23.1.Ive1.4.27.el6.x86_64). then your server is running CentOS6.<\/p>\n\n\n\n<p>4. In order to add Drush to your path, type the following commands depending on the CentOS version that you have obtained in step 3 :<\/p>\n\n\n\n<p>For the server running CentOS 7, type the following command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 'export PATH=\"$HOME\/.config\/composer\/vendor\/bin:$PATH\" '&gt;&gt; ~\/ .bashrc<\/pre>\n\n\n\n<p>For the server running CentOS 6, type the following command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 'export PATH=\"$HOME\/ .composer\/vendor\/bin:$PATH\" ' &gt;&gt; ~\/ .bashrc<\/pre>\n\n\n\n<p>5. To make the new path effective immediately, type the following command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">source ~\/.bashrc<\/pre>\n\n\n\n<p>Now you can see Drush is now installed and is ready to use.<\/p>\n\n\n\n<p>If you want to confirm if Drush is installed correctly, then type the following command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">drush version<\/pre>\n\n\n\n<p>Dursh will show you the recent version number.<\/p>\n\n\n\n<p>If you want to update Drush to the newest version, then type the following command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">composer global update<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Drupal websites may be managed, controlled, and altered using Drush, a shell-based computer program. A composer is a PHP dependency management used by the Drush installation process. Therefore, before installing Drush, you must install composer on your account. # Steps to install Drush : 1. Log in to your account using SSH. 2. Select the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23377,"menu_order":289,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-20096","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/20096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/comments?post=20096"}],"version-history":[{"count":2,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/20096\/revisions"}],"predecessor-version":[{"id":20106,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/20096\/revisions\/20106"}],"up":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/23377"}],"wp:attachment":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/media?parent=20096"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=20096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}