Changes between Initial Version and Version 1 of faq/drupal/update-module


Ignore:
Timestamp:
Jul 11, 2011, 2:38:23 PM (14 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/drupal/update-module

    v1 v1  
     1= How do I update my Drupal modules? =
     2
     3When accessing the admin part of your Drupal web site, you might see a message that says:
     4
     5{{{
     6There are security updates available for one or more of your modules or themes. }}}
     7
     8Typically, Drupal will provide a link to a page that lists the modules that are out of date.
     9
     10There are two ways you can update your module.
     11
     12== Using SFTP ==
     13
     14The page listing the out-dated modules will include links to the Drupal web page where you can download the most recent versions. You can follow each link, one-by-one, downloading the most recent versions of your modules.
     15
     16Then, using [sftp:sftp]:
     17 * download your database backup to your computer. It's available via [wiki:sftp sftp] on your server in yourdomain.org/backups (replace yourdomain.org with your actual domain). It will contain a backup of your database as of this morning. In case something goes wrong, you'll have the ability to restore your database. By downloading it to your computer, you will ensure you can always return to this morning's version, even if you let several days pass before you return to your web site.
     18 * download the existing module to your computer (as a backup in case something goes wrong)
     19 * delete the module from your site (don't just rename it, Drupal will continue using it even with a different name)
     20 * [wiki:add_drupal_module_or_theme upload the new module].
     21
     22When you are down, enter the following URL into your web browser, replacing yourdomain.org with your actual web site domain: http://yourdomain.org/update.php.
     23
     24You will be prompted to run any database updates that your new modules require.
     25
     26== Using the command line ==
     27
     28If you are familiar with [wiki:secure_shell ssh/secure shell], you can run updates much faster by using the command line.
     29
     30After logging in, change into your web directory (replace yourdomain.org with your actual domain):
     31
     32{{{
     33cd yourdomain.org/web
     34}}}
     35
     36Then run:
     37
     38{{{
     39drush up
     40}}}
     41
     42It will list all the modules that need updating and ask you if you want to proceed. Type y and hit enter.
     43
     44All existing modules will be backed up and new modules will be downloaded and installed. The last step will update your database as well.
     45
     46