Obsolete:CiviCRM upgrade
This page is kept for historical interest. Don't expect its contents to be relevant to the current day. |
From CiviCRM 2.? to 3.16 and Drupal 6.? to 6.17.
Steps for CiviCRM upgrade
Note for 3.1, see http://wiki.civicrm.org/confluence/display/CRMDOC31/Upgrade+Drupal+Sites+to+3.1
- Take site down for maintenance (really only necessary for Live)
- Disable watchdogs and timeouts for MySQL (make apropriate log entry in #wiki_tech with !log logentry or Tim Starling will be angry)
- Disable all CiviCRM integration / extension modules
- ensure that civicrm is not drupal home page (administration->site information)
- Update code for CiviCRM module ONLY
- Activate donor comments custom data field
- Copy donor comments to custom field using movenotes.php
- Make dump of DB to refresh to in the event of a botched upgrade, so as to not have to repeat the above steps.
- Run upgrade script
- Pray.
- Check ALL path settings (for files, domains, etc)
- Make sure that CiviCRM cron jobs are properly configured in Hudson and cron jobs deleted
Steps for Drupal upgrade
This is an ugly way to do this, but until our set up changes...
- Download latest drupal
- take the site off line
- backup everything, particularly .htaccess
- chmod g+w sites/default/settings.php; vi sites/default/settings.php
- set $update_free_access = TRUE in settings.php
- cp -rf latest drupal into the webroot
- run update.php
- ensure modules are enabled, restore .htaccess
- Re-enable watchdogs and timeouts
- Reset $update_free_access = FALSE in settings.php
- Double check UNVERSIONED files dir
- Double check all path settings
- Double check queue2civicrm queue settings
- Double check CiviCRM ACL permissions in Drupal (particularly around deletion...)
- put the site back on line
Hudson
This is already set up on Grosley.
Jobs need to be set up to:
- periodically run the PayflowPro processing script
- execute the Drush script in queue2civicrm module to pull transactions in donations queue into CiviCRM (this is currently happening for dev but NOT for live!)
- periodically run Drupal cron
ActiveMQ
This is already running on Erzurumi - see ActiveMQ for details.
Misc
- BE SURE TO UPDATE THE PAYPAL IPN ADDRESS ON PAYPAL'S END
- to quickly reset permissions properly on web dirs in grosely: sudo chown -R www-data:www-data org.wikimedia.civicrm.dev; sudo chmod -R g+w org.wikimedia.civicrm.dev;
- Details about non-civi/drupal moving parts on Fundraising.wikimedia.org (including testing information)