Drupal website in easy 5min - Drush

Things need to check

  • Check you Apache, PHP and Mysql is running.
  • Check system variables for mysql, drush and php.

This is the continue series of my previous post Drush. And I assume that your drush is installed and you can see the result in your status as expected.
Here are easy 12 instruction to follow to setup site using Drush in less than 5 min

  1. Run “Drush Command Prompt” shortcut or locate your installation folder where you want to install Drupal.
  2. I am installing it in my f:\www location.
  3. To install latest version of stable Drupal run the command.

    drush dl drupal


  4. Rename the folder as per your requirement.

    ren [drupal folder name] [new name]


  5. Change directory to recently renamed folder
    cd [new name]


  6. Line to install drupal
    drush si standard --db-url="mysql://[database user]:[password]@localhost:[port]/[database name]" --account-name="[admin login user]" --db-su="[database root user]" --db-su-pw="[database password]" --account-pass="[account password]" --account-mail="[account email]" --site-mail="[site email]" --site-name="[Website Name]"

  7. To enable modules

    drush en [module name] –y


  8. default contact modules
    drush en contact –y


  9. Install and enable some of the basic drupal modules like
    SN Modile Name Description
    1 Pathauto module automatically generates URL/path aliases for various kinds of content (nodes, taxonomy terms, users) without requiring the user to manually specify the path alias.
    2 Realname module allows the administrator to choose fields from the user profile that will be used to add a "real name" element (method) to a user object
    3 Media module provides an extensible framework for managing files and multimedia assets, regardless of whether they are hosted on your own site or a 3rd party site - it is commonly referred to as a 'file browser to the internet'.
    4 Adminimal Admin Menu adds a nice and simple minimalist look and provides some tweaks to improve your Drupal administration experience
    5 Backup and Migrate Its always a good thing to have a backup of your site. You can use this module to instantly recreate your entire site in minutes from the backup
    6 Wysiwyg Allows to use client-side editors like fckeditor, tinymice, etc. to edit content
    7 Spamicide prevent spam submission to any form on your Drupal web site
    8 Views Views module provides user interface to fetch content from the website using filters, conditions and ordering
    9 Xmlsitemap  
    10 Google Analytics  

    drush dl pathauto && drush en pathauto -y && drush dl realname && drush en realname -y && drush dl media && drush en media -y && drush dl adminimal_admin_menu && drush en adminimal_admin_menu -y && drush dl backup_migrate &&  drush en backup_migrate -y && drush dl wysiwyg && drush en wysiwyg -y && drush dl spamicide && drush en spamicide -y && drush dl views && drush en views -y && drush dl xmlsitemap && drush en xmlsitemap -y && drush dl google_analytics && drush en googleanalytics -y


  10. Install and enable custom admin theme
    drush dl adminimal_theme && drush en adminimal_theme -y && drush vset admin_theme adminimal_theme -y && drush pm-disable theme_name seven –y


  11. Install and enable custom client theme
    drush dl best_responsive && drush en best_responsive -y && drush vset theme_default best_responsive -y && drush pm-disable theme_name bartik –y


  12. Once site are all installed clear all cache
    drush cc all

Add new comment