Drupal Module Updates

Introduction

This document describes how to update your Drupal modules. If you require more help, this is the short, concise version. More information can be found at https://www.drupal.org/node/250790

If you are unsure what to do, don't do it. This can screw up everything. Please read everything. 

Requirements: PuTTY/WinSCP/Command-line terminal, a MySQL Account, a User Account on the SOE webserver coewww.rutgers.edu, the root directory of your site in which you have read/write permissions, a small amount of computer literacy, an ability to read. 

 

Procedure

  1. Login into your site through the web interface. Found at http://www.example.com/user and put your site into maintenance mode, http://www.example.com/admin/config/development/maintenance (replace www.example.com with your domain name)
  2. Go to http://www.example.com/admin/reports/updates and you will see a list of the modules you need to update (replace www.example.com with your domain name).
  3. SSH into coewww.rutgers.edu with your login and password.
  4. Change your current directory to the root directory of the site. All the modules will be placed into ./sites/all/modules. Download all the modules into that ./sites/all/modules.
    • If you are using PuTTY or a command-line terminal, you can do the following:
      • Copy the link address for the downloadable file. Generally it will be something like https://ftp.drupal.org/files/projects/date-7.x-2.10-beta1.tar.gz.
      • Enter this command in PuTTY "wget link" without the quotation marks, where link is the link you just copied.
      • Ex: "wget https://ftp.drupal.org/files/projects/date-7.x-2.10-beta1.tar.gz". This will download the most up-to-date 'date' module into ./sites/all/modules. "wget" stands for "webget".
  5. Backup your database
  6. Extract the archive and copy the files into your Drupal modules directory.
    • To do this:
      • Your current directory should stillbe ./sites/all/modules.
      • Enter the command, tar -zxf module-7.x-y.tar.gz, the module file replaces the module-7.x.y.tar.gz. This command extracts and unzips the tar file. Ex: tar -zxf date-7.x-2.10-beta1.tar.gz
  7. Download all the modules that need to be updated and repeat procedures 4-6 again for each.
  8. After installing all the modules, run update.php by visiting http://www.example.com/update.php and take your site off maintenance mode. (replace www.example.com with your domain name). 
© 2011 Rutgers, The State University of New Jersey - This site is XHTML 1.0 valid.