{"id":215,"date":"2015-04-07T15:19:42","date_gmt":"2015-04-07T15:19:42","guid":{"rendered":"https:\/\/www.fastcomet.com\/blog\/?p=215"},"modified":"2022-06-10T07:53:51","modified_gmt":"2022-06-10T07:53:51","slug":"drush-on-shared-hosting","status":"publish","type":"post","link":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting","title":{"rendered":"Drush Available on Shared Hosting Environment"},"content":{"rendered":"\n<p class=\"has-drop-cap\">With the daily improvement of our <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/my.fastcomet.com\/order\/ssdcloud\/\" target=\"_blank\">Shared Hosting<\/a> environment, we have managed to boost the performance and the services included in our <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.fastcomet.com\/drupal-hosting\" target=\"_blank\">Drupal Hosting<\/a> Package with one more which happens to be mandatory for today&#8217;s Drupal related hosting services. <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"http:\/\/www.drush.org\/en\/master\/\" target=\"_blank\">Drush<\/a> is a command line tool for one of the most used Open Source CMS Platforms &#8211; <a href=\"https:\/\/www.drupal.org\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Drupal<\/a>. The name Drush is an actual combination of two words. The first one is <strong>Drupal<\/strong> which you should be quite familiar with and the second one is <strong>Shell<\/strong>.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Literally, Shell is a command line interface which provides you with the opportunity to communicate with servers using simple text commands often called instructions. Shell is provided in nearly every hosting package we offer with the only difference that in our <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.fastcomet.com\/cloud-vps\" target=\"_blank\">VPS <\/a>and <a href=\"https:\/\/www.fastcomet.com\/dedicated-servers\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Dedicated Servers<\/a> Hosting packages we can provide you a higher level of access(<em>root<\/em>) in comparison to the Shared Hosting environment (<em>user<\/em>).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What can Drush Do?<\/h2>\n\n\n\n<p class=\"has-text-align-left\">With Drush, you will be able to perform key administrative tasks on your Drupal based web projects. Such tasks are for example:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"text-align: justify;\">Installing Drupal<\/li><li style=\"text-align: justify;\">Updating Drupal<\/li><li style=\"text-align: justify;\">Installing modules on Drupal<\/li><li style=\"text-align: justify;\">Updating modules on Drupal<\/li><li style=\"text-align: justify;\">Downloading and enabling themes<\/li><li style=\"text-align: justify;\">Run the Drupal Cron<\/li><li style=\"text-align: justify;\">Clear your website&#8217;s cache Run SQL commands directly against your Drupal database Displaying information about your Drupal installations<\/li><\/ul>\n\n\n\n<p>and much much more. You can receive a full list of the commands Drush introduces in its latest version and overall at a dedicated website to the <a href=\"http:\/\/drushcommands.com\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Drush command line<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Use Drush?<\/h2>\n\n\n\n<p>Drush usage on our shared hosting environment is quite an easy task. The Drupal command line tool is accessible with the simple command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ drush<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-left\">followed by additional parameters to the command depending on the task you would like to handle. Let&#8217;s check out the most basic parameters and their output.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"text-align: justify;\">Clearing cache &#8211; command: <code>drush cache-clear<\/code><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>$ <\/code>drush<code> cache-clear<\/code> <code>Enter a number to choose which cache to clear.<\/code> <code>[0] : Cancel<\/code> <code>[1] : drush<\/code> <code>[2] : all<\/code> <code>[3] : theme-registry<\/code> [4] :<code> menu<\/code> <code>[5] : <\/code>css<code>-js<\/code> [6] :<code> block<\/code> [7] :<code> module-list<\/code> [8] :<code> theme-list<\/code> <code>[9] : registry<\/code> <code>2<\/code> <code>'all' cache was cleared.<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Creating a backup for your Drupal website and database &#8211; command: <code>drush archive-dump<\/code><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>$ drush archive-dump<\/code> <code>Database dump saved to \/tmp\/drush_tmp_1428259280_552181d0280be\/s1intfco_drup2.sql<\/code> <code>[success]<\/code> <code>Archive saved to \/home\/user\/drush-backups\/archive-dump\/20150405184111\/s1intfco_drup2.20150405_184112.tar.gz [ok]<\/code> <code>\/home\/user\/drush-backups\/archive-dump\/20150405184111<\/code> <code>\/s1intfco_drup2.20150405_184112.tar.gz<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"text-align: justify;\">Installing Drupal &#8211; command:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>drush site-install standard --account-name=admin --account-pass=admin --db-url=mysql:\/\/YourMySQLUser:RandomPassword@localhost\/YourMySQLDatabase<\/code><\/pre>\n\n\n\n<p>There are a few things I should mention here. First and foremost you will need to download the Drupal version(quite an easy task with the <code>drush dl drupal-7.0<\/code> command which will download version 7.0). Secondly, you will need a database name, database username and random password. You can easily generate these following our <a href=\"https:\/\/www.fastcomet.com\/tutorials\/cpanel\/create-database\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">cPanel Database tutorial<\/a>. Next, you will need to simply replace those components in the command above.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"text-align: justify;\">Adding a new user to your website &#8211; command:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>drush user-create newuser --mail=\"user@domain.com\" --password=\"somepassword\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>$ drush user-create newuser --mail=\"user@domain.com\" --password=\"somepassword\"<\/code> <code>User ID: 4<\/code> <code>User name: newuser<\/code> <code>User mail: user@domain.com<\/code> <code>User roles: authenticated user<\/code> <code>User status: active<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Resetting password for user &#8211; command:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>drush user-password someuser --password=\"correct horse battery staple\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>$ drush user-password newuser --password=\"VeryStongPassword@#$\"<\/code> <code>Changed password for newuser<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>As you can see Drush can be quite handy as the biggest downside of Drupal these days is that it has so many features implemented that you need to walk your way to the desired functionality in a timely manner. Using the command line can be scary and frustrating especially to new users that have never messed around with bash or shell, however with Drush they will always have good examples of what they can achieve. With the flexibility of the command line, Drush will bring your Drupal Hosting experience to the next level. Just in case you find any issues with the tool or you would like to make a suggestion how we can improve it please contact our Technical Support Team by submitting a ticket and they will gladly assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the daily improvement of our Shared Hosting environment, we have managed to boost the performance and the services included in our Drupal Hosting Package with one more which happens to be mandatory for today&#8217;s Drupal related hosting services. Drush is a command line tool for one of the most used Open Source CMS Platforms [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":587,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4726],"tags":[105,106,42],"class_list":["post-215","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-service-updates","tag-drupal","tag-drush","tag-opensource"],"featured_image_src":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/drush.jpg","author_info":{"display_name":"Christopher","author_link":"https:\/\/www.fastcomet.com\/blog\/author\/christopher"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Drush Available on Shared Hosting Environment | FastComet<\/title>\n<meta name=\"description\" content=\"What is \u3010Drush \u3011? What is Drush used for? \u261b Learn how to use the command-line shell and scripting interface for Drupal.\" \/>\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.fastcomet.com\/blog\/drush-on-shared-hosting\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Drush Available on Shared Hosting Environment | FastComet\" \/>\n<meta property=\"og:description\" content=\"What is \u3010Drush \u3011? What is Drush used for? \u261b Learn how to use the command-line shell and scripting interface for Drupal.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting\" \/>\n<meta property=\"og:site_name\" content=\"FastComet Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-07T15:19:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-10T07:53:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/drush.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Christopher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Drush Available on Shared Hosting Environment | FastComet","description":"What is \u3010Drush \u3011? What is Drush used for? \u261b Learn how to use the command-line shell and scripting interface for Drupal.","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.fastcomet.com\/blog\/drush-on-shared-hosting","og_locale":"en_US","og_type":"article","og_title":"Drush Available on Shared Hosting Environment | FastComet","og_description":"What is \u3010Drush \u3011? What is Drush used for? \u261b Learn how to use the command-line shell and scripting interface for Drupal.","og_url":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting","og_site_name":"FastComet Blog","article_published_time":"2015-04-07T15:19:42+00:00","article_modified_time":"2022-06-10T07:53:51+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/drush.jpg","type":"image\/jpeg"}],"author":"Christopher","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Christopher","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting#article","isPartOf":{"@id":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting"},"author":{"name":"Christopher","@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/e70bae8b5451b247e36928e336317827"},"headline":"Drush Available on Shared Hosting Environment","datePublished":"2015-04-07T15:19:42+00:00","dateModified":"2022-06-10T07:53:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting"},"wordCount":540,"commentCount":0,"image":{"@id":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting#primaryimage"},"thumbnailUrl":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/drush.jpg","keywords":["drupal","drush","opensource"],"articleSection":["Service Updates"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting","url":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting","name":"Drush Available on Shared Hosting Environment | FastComet","isPartOf":{"@id":"https:\/\/www.fastcomet.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting#primaryimage"},"image":{"@id":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting#primaryimage"},"thumbnailUrl":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/drush.jpg","datePublished":"2015-04-07T15:19:42+00:00","dateModified":"2022-06-10T07:53:51+00:00","author":{"@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/e70bae8b5451b247e36928e336317827"},"description":"What is \u3010Drush \u3011? What is Drush used for? \u261b Learn how to use the command-line shell and scripting interface for Drupal.","breadcrumb":{"@id":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting#primaryimage","url":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/drush.jpg","contentUrl":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/drush.jpg","width":1024,"height":576},{"@type":"BreadcrumbList","@id":"https:\/\/www.fastcomet.com\/blog\/drush-on-shared-hosting#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fastcomet.com\/blog"},{"@type":"ListItem","position":2,"name":"Drush Available on Shared Hosting Environment"}]},{"@type":"WebSite","@id":"https:\/\/www.fastcomet.com\/blog\/#website","url":"https:\/\/www.fastcomet.com\/blog\/","name":"FastComet Blog","description":"FastComet Web Hosting Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fastcomet.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/e70bae8b5451b247e36928e336317827","name":"Christopher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/99f135e26f1ad748551251c1956e4aae0bd3bcc11af8e071075359b134894941?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/99f135e26f1ad748551251c1956e4aae0bd3bcc11af8e071075359b134894941?s=96&d=mm&r=g","caption":"Christopher"},"description":"Christopher has many years of experience leading teams in the fields of Technical support, Server Administration, and Product Development. He mainly works on the backend, helping to create the infrastructure that powers FastComet. He is responsible for flawless migrations and quick and efficient answers to client questions. He also monitors our network status and jumps in to solve time-sensitive issues like DDoS attacks and stops malicious attempts in their tracks. Christopher\u2019s primarily responsible for making sure that our servers purr along, and has worked tirelessly to improve automation at FastComet.","sameAs":["https:\/\/www.fastcomet.com"],"url":"https:\/\/www.fastcomet.com\/blog\/author\/christopher"}]}},"_links":{"self":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/comments?post=215"}],"version-history":[{"count":9,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":7967,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/215\/revisions\/7967"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/media\/587"}],"wp:attachment":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/categories?post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/tags?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}