Tag Archives: automation

Drupal: Installing multiple contrib modules – the easier than ‘easiest’ way

A while ago, I wrote about un-TARing multiple files in one go on the server to install multiple contrib modules for Drupal.

Of course, it seemed like the easiest thing in the world back then… But then, in 2010, the world still had Kodak films in production.

Now, allow me to show you the truly simplest way to install a drupal and add contrib modules – Drush. Of course, Drush allows for even more automation, but this workflow is quite sufficient for me at this time. It’s quite simple to install Drush on a Dreamhost Shared account with SSH.

Target folder – home/coloursalive.com

  1. cd
    to the level above the target folder
  2. wget http://ftp.drupal.org/files/projects/drupal-7.14.tar.gz
  3. ls
    confirm that the file has downloaded
  4. tar -xzvf drupal-7.14.tar.gz
    a new folder called drupal-7.14 is created
  5. check that there are no files that are required in the target folder
    1. Copy / Backup any files that are needed from the target folder
    2. delete the target folder and all subfolders
      rm -R coloursalive.com
  6. navigate to target folder in browser (in this instance www.coloursalive.com) and follow instructions to install drupal
  7. come back to shell once basic install is completed
  8. Download most basic modules
    drush dl token pathauto ctools views admin_menu wysiwyg imce webform libraries jquery_update views_slideshow imce_wysiwyg devel entity rules page_title
  9. Enable the modules that have been downloaded. In some instances additional modules that make up the project are downloaded. Assess the necessary modules to be enabled and enable them.
    drush en token pathauto ctools views views_ui admin_menu_toolbar admin_devel admin_menu wysiwyg imce webform libraries jquery_update views_slideshow views_slideshow_cycle imce_wysiwyg devel entity rules rules_admin page_title
  10. Ensure OK / success messages on all modules
  11. Move over to the admin section of the website and continue setting up the install

I’ll be happy to hear from you if you have any suggestions. Leave them in the comments, please.