Home > Tools > CMS > Drupal > Drupal Hacks > Bash Accelerated Drupal Installation

Bash Accelerated Drupal Installation

When developing Drupal modules or checking out modules I don't know yet, I run an instance of Drupal on my local machine. Sooner or later I feel the need to erase this installation and do a fresh install. The Drupal installation process is pretty straightforward and simple making it a good candidate for automating at least parts of it.

In the Drubuntu Drupal group I found this install script for Drupal that does not only install Drupal but also creates an operating system user, as well as apache2 and DNS configurations. A pretty useful script, but it does too much for my development needs.

I took it as a basis to create a simpler version that merely installs Drupal. In the screencast I demonstrate using this bash script that you can download here from Drupal's CVS repository.

To use it you may need to modify the server root path or set a password for the MySQL root user. Obviously you need a Bash interpreter and wget for downloading. Have fun installing Drupal even more quickly!

http://drupal.org/node/320 will help you make it checkout from CVS instead of requiring to wget the Drupal package. Once checked out, it's really easy to run a cvs update -dP -r DRUPAL-6-9 to update it to the next versions.

Using CVS is certainly an alternative to wget, maybe I'll add a third parameter to make it possible to do a CVS checkout instead a wget download.

Thank you for the article. The article helped me to understand a great deal. A long ago already suffer with Drupal, but due to you knew much new about this CMS.