{"id":7616,"date":"2019-07-04T08:49:18","date_gmt":"2019-07-04T08:49:18","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=7616"},"modified":"2019-07-04T08:49:18","modified_gmt":"2019-07-04T08:49:18","slug":"how-to-install-drush-manually","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/","title":{"rendered":"How to Install Drush Manually?"},"content":{"rendered":"<p>Drush is a computer software shell-based application which is used to control, manipulate and administer Drupal websites.<\/p>\n<p>The Drush installation process uses a PHP dependency manager known as a composer. Thus you require to install composer on your account before installing Drush.<\/p>\n<h2># Steps to install Drush :<\/h2>\n<p>1. Log in to your account using SSH.<\/p>\n<p>2. Select the Drush version that you wish to install :<\/p>\n<p>Install Drush 8 by typing following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">composer global require drush\/drush: 8. x<\/pre>\n<p>Install Drush 7 by typing following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">composer global require drush\/drush: 7. x<\/pre>\n<p>3. Now determine the CentOS version used on your server by typing following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">uname -r<\/pre>\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<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<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<p>For the server running CentOS 7, type the following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">echo 'export PATH=\"$HOME\/.config\/composer\/vendor\/bin:$PATH\" '&gt;&gt; ~\/ .bashrc<\/pre>\n<p>For the server running CentOS 6, type the following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">echo 'export PATH=\"$HOME\/ .composer\/vendor\/bin:$PATH\" ' &gt;&gt; ~\/ .bashrc<\/pre>\n<p>5. To make the new path effective immediately, type the following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">source ~\/.bashrc<\/pre>\n<p>Now you can see Drush is now installed and is ready to use.<br \/>\nIf you want to confirm if Drush is installed correctly, then type the following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">drush version<\/pre>\n<p>Dursh will show you the recent version number.<\/p>\n<p>If you want to update Drush to the newest version, then type the following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">composer global update<\/pre>\n<p><strong>Also Read :<\/strong><\/p>\n<p><strong>1)\u00a0<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/supereasy-ways-to-learn-everything-about-react-and-its-working\/\">SuperEasy Ways To Learn Everything About REACT AND ITS WORKING<\/a><\/strong><\/p>\n<p><strong>2)\u00a0<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/4-easy-steps-enable-and-disable-pingbacks-and-trackbacks-in-wordpress\/\">{4 easy steps} \u2013 Enable and Disable Pingbacks and Trackbacks in WordPress<\/a><\/strong><\/p>\n<p><strong>3)\u00a0<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-create-drupal-blocks\/\">How To Create Drupal Blocks?<\/a><\/strong><\/p>\n<p><strong>4)\u00a0<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-can-i-check-a-mysql-database-for-errors-in-cpanel\/\">How Can I Check a MySQL Database for Errors in cPanel?<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Drush is a computer software shell-based application which is used to control, manipulate and administer Drupal websites. The Drush installation process uses a PHP dependency manager known as a composer. Thus you require to install composer on your account before installing Drush. # Steps to install Drush : 1. Log in to your account using [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":7618,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[857,858],"class_list":["post-7616","post","type-post","status-publish","format-standard","has-post-thumbnail","placeholder-for-hentry","category-howtos","tag-drush","tag-install-drush"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Drush Manually? - Web Hosting FAQs by MilesWeb<\/title>\n<meta name=\"description\" content=\"The article explains easy steps to install Drush manually.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Drush Manually? - Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"og:description\" content=\"The article explains easy steps to install Drush manually.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-04T08:49:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/Drush-min.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"445\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sonam Wagh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sonam Wagh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/\"},\"author\":{\"name\":\"Sonam Wagh\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"headline\":\"How to Install Drush Manually?\",\"datePublished\":\"2019-07-04T08:49:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/\"},\"wordCount\":277,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/Drush-min.png\",\"keywords\":[\"Drush\",\"install Drush\"],\"articleSection\":[\"How-Tos\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/\",\"name\":\"How to Install Drush Manually? - Web Hosting FAQs by MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/Drush-min.png\",\"datePublished\":\"2019-07-04T08:49:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"description\":\"The article explains easy steps to install Drush manually.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/Drush-min.png\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/Drush-min.png\",\"width\":800,\"height\":445,\"caption\":\"Install Drush\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Drush Manually?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\",\"name\":\"Sonam Wagh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg\",\"caption\":\"Sonam Wagh\"},\"description\":\"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/sonam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Drush Manually? - Web Hosting FAQs by MilesWeb","description":"The article explains easy steps to install Drush manually.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Drush Manually? - Web Hosting FAQs by MilesWeb","og_description":"The article explains easy steps to install Drush manually.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-07-04T08:49:18+00:00","og_image":[{"width":800,"height":445,"url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/Drush-min.png","type":"image\/png"}],"author":"Sonam Wagh","twitter_misc":{"Written by":"Sonam Wagh","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/"},"author":{"name":"Sonam Wagh","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"headline":"How to Install Drush Manually?","datePublished":"2019-07-04T08:49:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/"},"wordCount":277,"commentCount":0,"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/Drush-min.png","keywords":["Drush","install Drush"],"articleSection":["How-Tos"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/","name":"How to Install Drush Manually? - Web Hosting FAQs by MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/Drush-min.png","datePublished":"2019-07-04T08:49:18+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"description":"The article explains easy steps to install Drush manually.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#primaryimage","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/Drush-min.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/Drush-min.png","width":800,"height":445,"caption":"Install Drush"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-drush-manually\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Install Drush Manually?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4","name":"Sonam Wagh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg","caption":"Sonam Wagh"},"description":"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/sonam\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=7616"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7616\/revisions"}],"predecessor-version":[{"id":7617,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7616\/revisions\/7617"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media\/7618"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=7616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=7616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=7616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}