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!

SEO Tools to Help Your Rank Higher
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.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br> <img> <h2> <h3> <h4> <h5>

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.