Score:1

How do I update a Lightsail server?

cn flag

I have decided I want to learn Drupal. To that end, I fired up an AWS Lightsail server with a Drupal site, to play around with. Having taken AWS's default Drupal 9 install and logged in, it is displaying this message in the config screens:

There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately! See the available updates page for more information and to install your missing updates.

This default site is running Drupal 9.3.2, but apparently the latest security update is 9.3.3.

I can download the tarball, but how do I now apply this update without destroying my site?

I've been googling away, but there doesn't appear to be clear instructions that I can locate.

ru flag
When I type "update drupal" into Google, it takes me right to https://www.drupal.org/docs/updating-drupal . Although it is still possible to update Drupal manually, I'd really recommend to a composer-based install and workflow
cn flag
In general, for testing out Drupal, I would use Lando or some other local dev environment that lets you easily set up git and so on. Updating drupal is a lot easier if you are using a git-based workflow. https://docs.lando.dev/config/drupal9.html
Score:2
cn flag

I can download the tarball, but how do I now apply this update without destroying my site?

You delete (very important not to overwrite!) and replace certain directories and files. See https://www.drupal.org/docs/updating-drupal/updating-drupal-core-manually

cd /path/to/your/drupal/directory
rm -rf core vendor
rm -f *.* .[a-z]*
wget https://ftp.drupal.org/files/projects/drupal-x.y.z.tar.gz
tar zxf drupal-x.y.z.tar.gz
cd drupal-x.y.z
cp -R core vendor /path/to/your/drupal/directory
cp *.* .[a-z]* /path/to/your/drupal/directory

Using your browser, run update.php by visiting http://www.example.com/update.php

David Buddrige avatar
cn flag
thanks heaps! that's got it. :-)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.