Answers.Body: <p>It may take some trial and error and going in steps. The CMS will also make a difference how you break up the steps. At some point you'll need to upgrade php to 7.x, but for some of the intermediate civi versions you might not want to go past php 7.1 or 7.2.</p>
  <p>See also <a href="https://docs.civicrm.org/sysadmin/en/latest/upgrade/version-specific/" rel="nofollow noreferrer">https://docs.civicrm.org/sysadmin/en/latest/upgrade/version-specific/</a> for some steps you might need to do along the way.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-02T23:46:32.750Z
Answers.Text: So, are you suggesting that I upgrade using each release in turn since 5.0.4:
  
  CiviCRM 5.43
  CiviCRM 5.37
  CiviCRM 5.36
  CiviCRM 5.34
  CiviCRM 5.29
  CiviCRM 5.26
  
  Or could I do a fresh install of the CMS + Civi and export/import the 5.0.4 database?
Answers.UserDisplayName: Simon Greener
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-02T23:49:33.847Z
Answers.Text: You can try the latter. Anecdotally that sometimes doesn't work for some reason. Theoretically it should.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-03T00:05:43.410Z
Answers.Text: I will investigate both. Thanks.
Answers.UserDisplayName: Simon Greener
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-10T20:03:17.820Z
Answers.Text: Generally recommend testing this out on a copy of the site - get a copy of the site running on the same CiviCRM version - confirm it works - backup the database - and then have a go running the upgrade - perhaps try going halfway somewhere about 5.20ish and see if that runs - if you get an error - restore the database from the pre install. Try upgrading to the version before you got the error and then step into the version that errored. Make a note of the intermediate steps you had to run - and potentially list them here for others to follow if they are trying to repeat the same process!
Answers.UserDisplayName: Luke Stewart
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-10T20:04:51.503Z
Answers.Text: One thing to look out for is if you have any extensions that are installed that get merged into core you'll want to disable them before the upgrade. You can find out which extensions are in core by looking in https://github.com/civicrm/civicrm-core/tree/master/ext (in the "master" drop down under tags select the version you are after) the one that I've seen problems with is flexmailer - so if you have this installed (required by mosaico from memory) you probably want to disable both before starting upgrade. Remove ext code that's now in core. refresh your extension list and reenable.
Answers.UserDisplayName: Luke Stewart
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-02T22:56:07.070Z
Answers.LastActivityDate: 2021-11-02T22:56:07.070Z
Answers.UserDisplayName: Demerit
Body: <p>I need to upgrade an existing CiviCRM 5.0.4 to the latest (5.42).</p>
  <p>What approach is recommended?</p>
  <p>Thanks in advance.</p>
  
Tags: <upgrade>
Title: Upgrade CiviCRM from 5.04 to 5.42
ThreadText: # Upgrade CiviCRM from 5.04 to 5.42
  
  (Asked by: username_0 on 2021-11-02)
  
  I need to upgrade an existing CiviCRM 5.0.4 to the latest (5.42).
  
  What approach is recommended?
  
  Thanks in advance.
  
  **Tags:** upgrade
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-11-02. Score: 0
  
  It may take some trial and error and going in steps. The CMS will also make a difference how you break up the steps. At some point you'll need to upgrade php to 7.x, but for some of the intermediate civi versions you might not want to go past php 7.1 or 7.2.
  
  See also <https://docs.civicrm.org/sysadmin/en/latest/upgrade/version-specific/> for some steps you might need to do along the way.
  
  > **Comments:**
  > **username_0**: So, are you suggesting that I upgrade using each release in turn since 5.0.4:  CiviCRM 5.43 CiviCRM 5.37 CiviCRM 5.36 CiviCRM 5.34 CiviCRM 5.29 CiviCRM 5.26  Or could I do a fresh install of the CMS + Civi and export/import the 5.0.4 database?  
  > **username_1**: You can try the latter. Anecdotally that sometimes doesn't work for some reason. Theoretically it should.  
  > **username_0**: I will investigate both. Thanks.  
  > **username_2**: Generally recommend testing this out on a copy of the site - get a copy of the site running on the same CiviCRM version - confirm it works - backup the database - and then have a go running the upgrade - perhaps try going halfway somewhere about 5.20ish and see if that runs - if you get an error - restore the database from the pre install. Try upgrading to the version before you got the error and then step into the version that errored. Make a note of the intermediate steps you had to run - and potentially list them here for others to follow if they are trying to repeat the same process!  
  > **username_2**: One thing to look out for is if you have any extensions that are installed that get merged into core you'll want to disable them before the upgrade. You can find out which extensions are in core by looking in https://github.com/civicrm/civicrm-core/tree/master/ext (in the "master" drop down under tags select the version you are after) the one that I've seen problems with is flexmailer - so if you have this installed (required by mosaico from memory) you probably want to disable both before starting upgrade. Remove ext code that's now in core. refresh your extension list and reenable.  
  
  ---
  
  