Note 1: Read the guide in full before you do anything. You’ll want to confirm it matches your situation and expectations.
Note 2: You can’t simply update PHP on an AWS lightsail WordPress stack. You have to migrate to a new instance with the latest version of PHP in it. That is what this guide shows you how to do.
Note 3: This guide assumes you have a static IP on your current Lightsail instance. If you don’t, you could possibly assign one in advance, but otherwise this guide isn’t for you.
I last ran through this guide myself on 26th January 2026 on this very site, which is about 750MB. I took it from PHP 8.2 to 8.4. WordPress 6.9 was installed on both source and destination instances during the process. With fast broadband it was down for less than 5 minutes.
I decided to rewrite the previous version of this article. The original has been cloned and copied loads of times, and to be honest it got bloated with updates and comments. I also prefer this new way. It’s fast and avoids issues with SSL certificates.
This guide aims to only take you through the steps I use now when a PHP version update is needed for my AWS Lightsail Bitnami WordPress install.
No fluff. Limited details. Just 7 steps and 3 optional ones.
You follow this guide at your own risk. Back up your site and read the full article through first. The older version of this article is still valid if there isn’t enough information for your needs here.
The main change here is we’re going to use a very simple maintenance plugin which shows a message in the short time required between moving the domain over to the new install and importing the migration file. This does away with the potential complexity of the Lightsail IP address being saved to the database as part of the migration.
Ready?
Continue reading →