Power Of Drush- Installation of Drupal 7

Setup the drupal project using Drush

1. Configure the project using drush, so go to host folder(var/www) and run the below command to download the latest Drupal version.

drush dl drupal-7.41


In the same manner you can download any module using drush(Like - drush dl drupal_dashboard).Rename the project as per convienience, I named it as drush_tut

mv drupal-7.41 drush_tut

cd drush_tut

Now configure the site username and password and database. It will create the database for you if the db_user above has the privileges to. Here db name is drush_tutorial.

drush site-install standard --account-name=admin --account-pass=admin –db-url='mysql://root:root@localhost/drush_tutorial' --site-name=DrushTutorial

2. Now check the site in browser i.e.

Now your project setup is done.

3. Now try some other useful commands like enable/disable module.
Like disable overlay module. So run the below given command -

drush dis overlay

To enable the module, run below command to enable blog module -

drush en blog

To clear the Drupal cache -

drush cc

To know all the command of drush, run command

It will give you all the best options. For more, Please subscribe.....

Steps to install drush in Linux, ubuntu etc visit -

For demo - https://www.youtube.com/watch?v=KWb871SGcns

Blog Category: