Forum archive
Updating Drupal 8 to 8.4.x
I have been playing with the TKL Drupal 8 appliance. As of version 14.2, it comes with Drupal 8.3.x (don't remember the patch version) but there's already been a minor version tick to 8.4 (latest as of writing is 8.4.4) with important security updates. Unfortunately, the update to 8.4 is a bit of a mess for drupal (there are complicated dependency problems involving certin PHP modules that are used by composer or drush, it's a mess). You can find lots about this drama around the web but there appear to be a few well known workaround.
I've tried a couple of workarounds but so far none have worked:
- Update drush to version 8.1.15 then use that to update drupal/core (the update of drush suceeds but it fails to update drupal core)
- Update using composer (composer continually runs out of memory as it tries to download and install the latest drupal/core)
I've tried a few other random things and nothing seems to be working. Has anyone does this successfully with the Drupal8 appliance? Any pointers? I'm a total newb with Drupal and with PHP for anything other than web pages, but I can't imagine this should be this hard so hopeing someone has an obvious suggestion here I'm just missing.
Cheers!
Seth B.
I found a way to update using drush! I think the key idea I was missing was exactly how and where drush was installed on this appliance. I deduced two things:
With this bit of info, I was able to update drush first CORRECTLY, and then use the latest drush to upgrade basically in the manner suggested in the official drupal 8 upgrade docs.
I wrote a bash script to do this with a couple of tweeks to hopefully make the process smooth. A few things to note about this script: