Answers.Body: <p>EDITED: I think with the docker image you would run the <a href="https://docs.civicrm.org/dev/en/latest/tools/civibuild/" rel="nofollow noreferrer">civibuild</a> command, rather than extracting manually. So something like:</p>
  <pre><code>civibuild create my-site --type wp-empty --civi-ver 5.57
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-10T11:28:54.940Z
Answers.Text: Thanks for the answer. Unfortunately this did not work either. Using `--type wp-empty` I can succesfully build the environment but no CiviCRM is installed (as it is also supposed to be with wp-empty). If I replace the type by wp-demo e.g. `civibuild create testsite --type wp-demo --civi-ver 5.57.4` I get an error stating that the git branch could not be found. This is probably the case, because civibuild has no direct access to the ESR version of CiviCRM
Answers.UserDisplayName: Simon Hermann
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-10T18:30:30.133Z
Answers.Text: does --civi-ver 5.57 work?
Answers.UserDisplayName: Andrew West
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-11T13:17:34.080Z
Answers.Text: This did work!
  Seems that my problem was not connected to installing ESR Version of CiviCRM but more about installing older version of CiviCRM. By try and error it turned out, that with CiviCRM vers < 5.52 I get a composer error, if I try to install them using civibuild. Would be interesting to learn, where this stems from, but thats probably another topic on its own.
Answers.UserDisplayName: Simon Hermann
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-10T10:01:47.523Z
Answers.LastActivityDate: 2023-05-12T08:50:37.363Z
Answers.LastEditDate: 2023-05-12T08:50:37.363Z
Answers.UserDisplayName: Andrew West
Body: <p>I am trying to set up a local development environment to test new extensions with an ESR version of CiviCRM (currently CiviCRM 5.45.6). To this end I use the <a href="https://lab.civicrm.org/michaelmcandrew/civicrm-buildkit-docker" rel="nofollow noreferrer">civicrm-buildkit-docker</a> projekt. So far I was successful to build recent version of CiviCRM based on wp-demo.
  I have access to the .zip files of the ESR Versions of Civicrm. Therefore, my plan was to set up a build based on wp-empty and then to manually install these CiviCRM versions either with the user interface or by unpacking the zip file in the wp-content/plugins folder and to activate CiviCRM in the user interface.
  With both approaches I was not successful:</p>
  <ol>
  <li>Installing with the user interface I am redirected to a page stating: 'The link you followed has expired.'</li>
  <li>Unziping the .zip file in the wp-content/plugins folder, I do see CiviCRM in the plugin list. If I then try to activate the plugin I get into following PHP-Errorrs:</li>
  </ol>
  <pre><code>Fatal error: Uncaught CRM_Core_Exception: [0: Found installation canary. This suggests that something went wrong with tracking installation process. Please post to forum or JIRA. thrown in /buildkit/build/soziokultur/web/wp-content/plugins/civicrm/civicrm/Civi/Core/InstallationCanary.php on line 37
  </code></pre>
  <pre><code>CRM_Core_Exception: Found installation canary. This suggests that something went wrong with tracking installation process. Please post to forum or JIRA. in /buildkit/build/soziokultur/web/wp-content/plugins/civicrm/civicrm/Civi/Core/InstallationCanary.php on line 37
  </code></pre>
  <p>Can anyone tell me, how to go about this or which way I could go to set up a development environment based on the ESR version of CiviCRM?</p>
  
Tags: <developer><civicrm-buildkit><esr>
Title: Install Civicrm ESR on Buildkit wp-empty build
ThreadText: # Install Civicrm ESR on Buildkit wp-empty build
  
  (Asked by: username_0 on 2023-05-10)
  
  I am trying to set up a local development environment to test new extensions with an ESR version of CiviCRM (currently CiviCRM 5.45.6). To this end I use the [civicrm-buildkit-docker](https://lab.civicrm.org/michaelmcandrew/civicrm-buildkit-docker) projekt. So far I was successful to build recent version of CiviCRM based on wp-demo.
  I have access to the .zip files of the ESR Versions of Civicrm. Therefore, my plan was to set up a build based on wp-empty and then to manually install these CiviCRM versions either with the user interface or by unpacking the zip file in the wp-content/plugins folder and to activate CiviCRM in the user interface.
  With both approaches I was not successful:
  
  1. Installing with the user interface I am redirected to a page stating: 'The link you followed has expired.'
  2. Unziping the .zip file in the wp-content/plugins folder, I do see CiviCRM in the plugin list. If I then try to activate the plugin I get into following PHP-Errorrs:
  
  ```
  Fatal error: Uncaught CRM_Core_Exception: [0: Found installation canary. This suggests that something went wrong with tracking installation process. Please post to forum or JIRA. thrown in /buildkit/build/soziokultur/web/wp-content/plugins/civicrm/civicrm/Civi/Core/InstallationCanary.php on line 37
  
  ```
  
  ```
  CRM_Core_Exception: Found installation canary. This suggests that something went wrong with tracking installation process. Please post to forum or JIRA. in /buildkit/build/soziokultur/web/wp-content/plugins/civicrm/civicrm/Civi/Core/InstallationCanary.php on line 37
  
  ```
  
  Can anyone tell me, how to go about this or which way I could go to set up a development environment based on the ESR version of CiviCRM?
  
  **Tags:** developer, civicrm-buildkit, esr
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-05-10. Score: 0 | Accepted answer
  
  EDITED: I think with the docker image you would run the [civibuild](https://docs.civicrm.org/dev/en/latest/tools/civibuild/) command, rather than extracting manually. So something like:
  
  ```
  civibuild create my-site --type wp-empty --civi-ver 5.57
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks for the answer. Unfortunately this did not work either. Using `--type wp-empty` I can succesfully build the environment but no CiviCRM is installed (as it is also supposed to be with wp-empty). If I replace the type by wp-demo e.g. `civibuild create testsite --type wp-demo --civi-ver 5.57.4` I get an error stating that the git branch could not be found. This is probably the case, because civibuild has no direct access to the ESR version of CiviCRM  
  > **username_1**: does --civi-ver 5.57 work?  
  > **username_0**: This did work! Seems that my problem was not connected to installing ESR Version of CiviCRM but more about installing older version of CiviCRM. By try and error it turned out, that with CiviCRM vers < 5.52 I get a composer error, if I try to install them using civibuild. Would be interesting to learn, where this stems from, but thats probably another topic on its own.  
  
  ---
  
  