Changes between Version 14 and Version 15 of faq/drupal/upgrade


Ignore:
Timestamp:
Apr 20, 2009, 1:53:42 PM (16 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/drupal/upgrade

    v14 v15  
    2525 * Make a list of custom scripts and other special templates you may have in your theme's directory. If you are using Drupal without any customization ("out of the box") with a standard theme (e.g. Bluemarine), your upgrade will go very smoothly. If you have customized scripts and pages, these may break after the upgrade (requiring you to tweak them). If you do have a heavily customized theme, you may consider switching to a core theme before the upgrade. Then, after the upgrade try switching to your custom theme.
    2626
    27  * Make a backup! You will want to backup both your directories and your database. To backup these up, first, figure out what your database username and password is (see [wiki:access_drupal_database_directly here] for directions on how to do that). Then, ssh into your server and change into your site directory (the directory that contains your web, include, cgi-bin, etc. directories). Then, run the following commands:
     27 * Make a backup! You will want to backup both your directories and your database. To backup these up, [wiki:secure_shell ssh] into your server and run the following commands (replacing YOURDOMAIN with your actual domain name and YOURDATABASE with the name of your database):
    2828
    2929{{{
    30 cp -r -p web include/web.backup
    31 mysqldump -u <db-username> -p <db-name> > include/drupal_db.backup.sql
     30cp -r -p YOURDOMAIN/web web.backup
     31mysqldump YOURDATABASE  > drupal_db.backup.sql
    3232}}}
    33 
    34  Replace <db-username> and <db-name> with your actual database username and database name. You will be prompted for your database password.
    3533
    3634 * Login to your Drupal site as the user with User ID 1. If that user is mayfirst, then change the mayfirst user's password and log in as the mayfirst user. You must be logged in with user id 1 for the upgrade to work properly. If you are not sure what user id you are logged in as, click the My Account link in your menu and look at the web address you are sent to. It will say: /user/3 if you are user id 3. Or /user/1 if you are user id 1.
     
    4038 * Disable all third party modules. Go to the modules admin section of your web site. Compare the enabled modules with your list of third party modules. You can find a list of your third party modules by looking in your web/sites/default/modules directory. Uncheck each third party module that is checked.
    4139
    42  * Secure shell (ssh) into your site. Move your old modules out of the way. From your web/sites/default directory, execute:
     40 * Using [wiki:sftp secure FTP] or [wiki:secure_shell ssh], remove all the modules in your sites/default/modules directory.
    4341
     42 * Using [wiki:secure_shell ssh], change into your web directory. Replace YOURDOMAIN with your actual domain:
    4443{{{
    45 mv modules modules.4.6
    46 mkdir modules
     44cd YOURDOMAIN/web
    4745}}}
    4846
    49  * Run the mf-change-drupal-symlinks script. First change into your web directory, then run the command passing the version of Drupal you want to change to (in this example, it is Drupal 5):
    50 
     47 * Run the mf-change-drupal-symlinks script. Run the following command
    5148{{{
    52 cd home/members/<your-group-name>/sites/<your-domain-name>/web
    53 mf-change-drupal-symlinks 5
     49mf-change-drupal-symlinks
    5450}}}
    5551