UPDATE: I can confirm that updating PHP direction only for lightsail blueprint stacks (not bitnami blueprint stacks) is now possible. See Amazon’s guidance related to PHP vulnerabilities of Oct 2026
Specifically to resolve PHP vulnerabilities CVE-2026-109618 and CVE-2026-109619 I clicked to ‘Connect using SSH’ then ran sudo apt update` followed by sudo apt upgrade and following confirming the changes and running php -v I now see ‘8.2.35’ which is a patched version of PHP. I then ran `sudo systemctl restart apache2` as shown in the guidance above.
Previously lightsail used Bitnami blueprints for WordPress and other commonly used setups. But in 2025/26 Amazon made their own lightsail blueprints available, and are moving away from Bitnami options.

Note 1: Read this guide in full before you do anything. You’ll want to confirm it matches your situation and your expectations.
Note 2: You can’t simply update PHP on an AWS lightsail WordPress stack. You have to migrate to a new lightsail instance with the newer version of PHP on it. That is what this guide shows you how to do.
Note 3: This guide assumes you already have a static IP on your current Lightsail instance. If you don’t, you could possibly assign one in advance, but otherwise this guide is not for you.
Note 4: I’m planning to add a step or reference for those moving over from Bitnami to Lightsail blueprint. Things like htaccess files needs manual consideration as they’re outside the WordPress structure and are not automatically migrated.
I last ran through this guide myself on 15th October 2026 on this very site, which is about 800MB. It took it from PHP 8.4 to 8.2. Yes, lightsail instances appear to be behind where bitnami instances were, and I’m now seeing plugins that won’t update due to that. WordPress 7.1 was installed on both source and destination instances during the process.
Note that since Bitnami’s tool for SSL certificates is no longer available, the order of things needs to be changed to allow running of the new ‘Set up your WordPress website’ tool which handles domains and SSL certificates. There may be a little more time showing the maintenance page due to this. For me, 7 minutes.
No fluff. Limited details. Just 9 steps and 1 optional one.
Continue reading
