Drupal Core Minor Updates


This document describes how to update your Drupal site from one minor 7.x version to another minor 7.x version; for example, from 7.8 to 7.9, or from 7.6 to 7.10. If you require more help, this is the short, concise version. More information can be found at https://www.drupal.org/node/1223018

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 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. 


Auto Procedure (using drush)

  1. SSH into coewww.rutgers.edu with your engineering account
  2. To perform minor updates using drush, simply navigate to your site directory (e.g. /www/www1/ecs)
  3. run the command "drush up drupal" and confirm where asked. This procedure automatically backups the site and its contents. That is it.


Manual Procedure

  1. (Recommended) 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. SSH into coewww.rutgers.edu with your login and password.
  3. Download the latest Drupal 7.x release from http://drupal.org/project/drupal to a directory outside of your web root, your home directory is fine.
    • 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/drupal-7.xx.tar.gz. Where the xx is replaced with the current Drupal version.
      • 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/drupal-7.41.tar.gz". This will download drupal-7.41.tar.gz into your current directory. "wget" stands for "webget".
    • If you are using WinSCP, you can do the following:
      • Download the file itself to your local machine. Generally it will be something like https://ftp.drupal.org/files/projects/drupal-7.xx.tar.gz. Where the xx is replaced with the current Drupal version.
      • Move the file from your local machine to your home directory in coewww.rutgers.edu using WinSCP.
  4. Backup your database. 
  5. Extract the archive and copy the files into your Drupal directory.
    • To do this:
      • Go to the directory in which you downloaded the file, probably your home directory.
      • Enter the command, tar -zxf drupal.7.xx.tar.gz, where xx is replaced with the current Drupal version. This command extracts and unzips the tar file into a directory with a similar name.
      • Find the correct directory in which your site is located. This is will be something along the lines of /www/www1/sitename
      • IMPORTANT: Enter this command in PuTTY "cp -R drupal-7.xx/* /path/to/your/website". Again, xx is replaced with your current Drupal version and the "/path/to/your/website" is the path to the root of your site.  If you get the /path/to/your/website wrong, there can be some major consequences.
  6. Login to the account on your site. 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.