- Newest
- Most votes
- Most comments
For Bitnami WordPress instances on Lightsail, direct PHP upgrades are not supported. The recommended approach is to create a new instance and migrate your data. Here's how to proceed:
-
First, back up your current instance by creating a snapshot (this is a best practice before any major changes).
-
Launch a new WordPress instance using the latest Bitnami blueprint. The latest blueprints typically include the most recent PHP versions.
-
Migrate your data from the old instance to the new one:
- Export the content from your current WordPress instance
- Save your wp-config.php file from the current instance
- If you're using a static IP, prepare to detach it from the current instance
- To verify the PHP version on the new instance before fully migrating:
- Connect to the new instance via SSH
- Run
php -vto check the installed PHP version
Regarding WordPress versions not being the latest (6.8.1 vs 6.8.3), you have two options:
- Use the WordPress admin dashboard to update to the latest version after setting up your new instance
- Wait for AWS to update their Bitnami blueprints with the latest WordPress version
For maintaining WordPress on Lightsail, there are two main approaches:
- Use the upgrade feature within WordPress admin for WordPress core, themes, and plugins (note that this doesn't update PHP)
- Create new instances with the latest blueprints when you need to upgrade both WordPress and PHP
Remember to thoroughly test your WordPress site on the new instance before switching over your production traffic.
Sources
Upgrade PHP in Lightsail Instance Linux/Wordpress | AWS re:Post
Upgrade PHP on Lightsail | AWS re:Post
Community | Migrating to WordPress on AWS Lightsail for Easier Maintenance
Advice on upgrading old Bitnami site. | AWS re:Post
Relevant content
asked a year ago
asked 4 years ago

edited agent response to remove some unclear alternatives which were largely not relevant.