Upgrading PHP version to 8.2 for a Linux/Unix wordpress instance?

0

Quick question - is there any way to upgrade the PHP version of a Bitnami wordpress instance? I know those instances have PHP 8.1.8, but the theme I'm running on my website (currently on bluehost, migrating to aws) is either compatible with v8.0 or with v8.2 - not 8.1.

asked a year ago1442 views
1 Answer
0

Hello there,

The PHP version on a Bitnami WordPress instance can absolutely be upgraded. Because Bitnami stacks are self-contained and the components are made to function together right out of the box, it is not as simple as running a command.

Independently updating PHP could lead to certain compatibility problems. The more secure method is to first establish a new instance with the necessary PHP version (8.2 in your case), and then transfer your current WordPress site to that new instance.

You can:

  1. Start a fresh Bitnami WordPress stack on AWS using PHP 8.2. To do this, you can use the AWS Marketplace, the Bitnami Launchpad for AWS Cloud, or the AWS EC2 console.
  2. You will need to migrate your WordPress site after the new instance is operational. Make a backup of your current WordPress website on Bluehost first. To make a backup of your website, use a WordPress plugin like UpdraftPlus, Duplicator, or All-in-One WP Migration.
  3. After that, you should restore this backup to the fresh AWS Bitnami instance. The majority of plugins let you do this by importing the backup and installing the exact same plugin on the new WordPress.
  4. After you've moved your site, be sure to verify that everything is operating as it should.

If you would like to proceed and manually upgrade PHP on the existing Bitnami instance, you'd essentially need to compile PHP from source and then replace the existing PHP binary in the Bitnami stack.

Proceed with caution if you decide to go this route.

Hope this helps!

AWS
e_mora
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions