In a Rush? Install with Drush!

You know how to install Drupal the normal way, but there is a shortcut, if you have drush.

Drush provides a command (site-install) for downloading modules. Drupal, itself, is kept as a project in the modules section of Drupal. So, drush can download it, as well. Installing Drupal can be done with another drush command. Here is how to install Drupal, in 3 easy steps:

  1. drush dl drupal --drupal-project-rename=<my project name>
  2. cd example
  3. drush site-install standard --db-url='mysqli://[db_user]:[db_pass]@localhost/[db_name]' --site-name=<site directory name>

Add new comment

Markdown

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>
  • Missing filter. All text is removed