Upgrading Drupal (minor versions)

Upgrading Drupal to the latest version is a simple process. NOTE: These instructions involve upgrading Drupal from one minor version to another (e.g. 7.2.1 to 7.2.2). THEY DO NOT cover the much more complicated process of upgrading from one major version to another (e.g. 7.2.1 to 8.2.1). Major versions of Drupal are NOT cross-compatible, and upgrades generally involve creating a new site and importing content from the old site into it.

Procedure

  1. Grab the latest minor version of Drupal from https://drupal.org/project/drupal
    1. Possibly wget http://ftp.drupal.org/files/projects/drupal-7.22.tar.gz
  2. Unarchive it:
    1. tar xzf drupal-7.22.tar.gz
    2. This should create a directory called drupal-7.22
  3. Place the current site in maintenance mode:
    1. Log in as administrator
    2. Go to http://aclweb.org/admin/config/development/maintenance
    3. Check the box for maintenance mode and hit Save configuration
  4. Replace everything EXCEPT what is in the sites/ folder with the content of the newly-downloaded Drupal package (in a properly-administered Drupal site, all user-added content should stay in sites).
    1. Since the site currently uses a text-file database (sqlite) one option for doing tis is to copy the sites directory to the new drupal installation and replace the entire site with the new folder. You'll want to be careful of permissions changes if you do it this way, though. In particular, the database (in sites/default/files/.acl.sqlite) and the files folder that contains it need to be excutable and writeable by the web server.
  5. You should still be logged into the site (if not, log in as an administrator now). Run update.php - which you can do from http://aclweb.org/update.php

If there are no errors, the site is upgraded!