How to Update a Drupal 6 Module
This tutorial will walk you through, step-by-step, how to update your Drupal module to a new version.
Please make sure you have fully backed up your site before proceeding.
Download and Extract the New Module
Go to http://drupal.org/project/modules and download the new version of the module, then extract the module folder. For more detailed instruction on how to download and extract, please visit the first few steps of our How to Install a Drupal Module tutorial.
Start your FTP Client
Enter your FTP credentials and start your FTP client. Having this ready will help minimize site down time.
Set the Site Status to Off-line
Log into your user #1 Admin account. User #1 is the very first user which you created when first installing Drupal. Then navigate to Administer >> Site configuration >> Site maintenance.
Set site status to Off-line, then customize your site off-line message letting your users know about the maintenance and expected downtime. Once done, save the configuration.
The reason that we set site status to Off-line is to prevent users from calling any of the module code that would shortly be deleted, and therefore be missing, thus preventing error messages from displaying to the user and at the same time preventing database corruption.
Backup Your Old Module
Your old module folder should be in the sites/all/modules directory. Many have their modules in the default /modules folder in the root of the Drupal installation, however, for easily updating your Drupal Core version, it is preferred to place all modules in the sites/all/modules directory.
Wherever your old module folder is, back it up by downloading it your computer to allow us to easily revert back if anything goes wrong.
Once you have downloaded it, rename it and add Backup to the end of the folder name, e.g. aclBackup, to ensure we do not confuse the new folder with the old one.
Delete Your Old Module from the Server
Delete the old module.
Upload the New Module Folder
Next, we need to upload the new module to the same directory the old module was in.
Make sure that you are still logged in as the Administrator, then run http://yoursite.com/update.php in your browse by adding /update.php to your Drupal installation’s root URL.
This page will give you the directions for the update process (which we have already done). Make sure you read through and have followed the directions carefully. Hit continue when you are ready.
Read and follow the directions. Once ready, click Update.
Once the update process is completed and no errors are found, your module has been successfully updated.
If errors are found, read through the error log and correct all errors before proceeding. Do not set your site to On-line until all errors are corrected.
Set Site Status to Online
Either click on administration pages or main page.
At the top, click on “Operating in off-line mode”.
Set your site status to Online and save the configuration.
You have just finishing updating your module!