Drupal website in 5 minutes
I will try to explain how to install a Drupal 7 website in 5 minutes using Drush, an awesome php tool that will help us the tedious work of downloading and installing drupal and the modules needed.
First we must install drush in our system, just following the drush documentation explained in the drush module page.
The next step is to download Drupal 7 from the command line usign the recently installed drush script. Just type the following command to download the latest version of Drupal 7:
drush dl drupal-7
Now we will install the Drupal standard profile and automatically create the settings.php file and the database just with one command:
drush si standard --account-mail=<your-email> --account-name=<your-username> --account-pass=<your-password> --clean-url --db-url=mysql://<db-user>:<db-pass>@<db-host>/<db-name> --site-mail=<your-email> --site-name=<your-sitename>
Note: Don't forget to replace the values within the less-than and greater-than signs with the correct values.
Answer "yes" to the following question:
You are about to create a sites/default/files directory and create a sites/default/settings.php file and CREATE the '<db-name>' database. Do you want to continue? (y/n): y
The following messages will be shown during the installation:
Starting Drupal installation. This takes a few seconds ... [ok] Installation complete. User name: <username> User password: <password> [ok]
In a few seconds you will get your Drupal site installed and ready to go. Just login with the username and password shown and drupalize you ;)