Using Drush to Install Drupal 7

You can follow these simple directions and use Drush to easily install your new Drupal 7 website. These commands work well on a Linux operating system. If you are using Quickstart, there are some built in commands to make this process even simpler. See Using Quickstart and Drush to Install Drupal 7.
 
Let’s download the latest version of Drupal 7
 
drush dl
# downloads the latest version of Drupal from www.drupal.org
 
ls
# is for listing. To view directory listing. Similar to the DOS command, dir
 
mv drupal-7.9/ test.dev
# renames the Drupal folder to test.dev
 
cd test.dev
# change directory to test.dev
 
ls
# to see directory listing
 
cd sites/all
# change directory to sites/all
 
mkdir modules themes
# make directory modules and directory themes
 
drush dl devel adaptivetheme
# drush downloads specified modules and themes. Also puts modules in modules folder and themes into theme folder
 
cd ../default
 
cp default.settings.php settings.php
 
cd ..

chmod 777 default -R
# this will give Drupal read and write permissions for default folder and settings.php
 
Go into phpmyadmin and create new database for the new website
 
Set up your vhosts and apache config for the new domain.
 
Open your browser and type in:
 
http://test.dev
 
You will see the Drupal install screen. Enter your database information and proceed with setting up your new Drupal website.

Now you can change the file permissions to be more secure.

cd default
chmod 644 settings.php

cd ..
chmod 755 default

Comments

annie

It is indeed a very tedious task to install drush in the drupal site but I have made it very easily and the credit of course goes to you only as you have made it very easy by your tutorial .Thanks for the same.

Hi I am so glad I found your

Hi I am so glad I found your weblog, I really found you by accident, while I was looking on Askjeeve for something else, Anyhow I am here now and would just like to say many thanks for a marvelous post and a all round interesting blog (I also love the theme/design), I don't have time to look over it all at the moment but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the great job.