How to upgrade a Drupal Module
By Koder at Mon, 02/14/2011 - 22:30
In this article we will show you how you can upgrade a Drupal Module. Drupal as you must be knowing is one of the best Content Management System (CMS) that powers some of the worlds best website. Drupal Modules are often third party extensions (approved by Drupal) that enable extra functionality for the website. In our example we will show you step by step as how you can upgrade the famous Google Analytics module, which lets you track visitors and stats for your website. The process for upgrading a Drupal module is exactly similar to the example we will demonstrate here.
Before upgrading, make sure you backup your Drupal site. You can backup the site files by simply making a copy of them on your local hard drive via FTP etc. For backing up the database, you can use Drupal's Backup and Migrate modules, for which we included step by step instructions on how to backup and migrate your site here.
Here is the step by step procedure on how to upgrade a Drupal module, we assume here that you are running version 6.x or better of Drupal CMS
1. Go to http://yoursitename.com/admin/reports/updates , you will need to log in as admin. This page will tell you which modules are out of date and need upgrading
2. In our example it shows that Google Analytics module on our test site is out of date, it tells you the recommended version of the module and its release date. The same page also provides you with a download link for the module
3. Click on the Download link, save the file. Notice that the file is compressed as tar.gz, you will need a program like 7Zip to decompress the file and explode it, when you decompress the file, it creates a folder called google_analytics
4. Now go to your http://yoursitename.com/admin/build/modules page and disable the module you are upgrading by unchecking it and clicking save configuration
5. Connect to your website and then delete the particular module's (in our case Google Analytics) directory on your site. This is typically located in /sites/all/modules directory