Every time a new version of PHP is released we all get excited because it usually brings in new, interesting features and performance improvements. That’s exactly what happened with PHP 8.1, which was not only released on November 25, 2021, but is now available at Kinsta for all environments.
Before updating your PHP version to PHP 8.1, we’d like to remind you a few things:
- To prevent any data loss, always make sure to create a backup of your sites before taking any action.
- Test your sites in a staging environment first and upgrade your live site only and if you experience no issues.
- WordPress 5.8 (current stable release) doesn’t support PHP 8.1. However, the upcoming WordPress 5.9 version (Jan 25, 2022) will.
- If you do notice issues with your WordPress version, work with a qualified developer to debug your site before upgrading to PHP 8.1.
- Not all plugins and themes might be yet compatible with PHP 8.1 and our support team is unable to assist with code compatibility issues. Ensure all your plugins and themes support PHP 8.1 before upgrading your PHP version. If you notice a plugin or theme issue on your site, we recommend downgrading to PHP 8.0 and reaching out to the developer of the plugin or theme regarding the PHP 8.1 incompatibility.
- PHP 8.1 and PHP 8.0 are not yet compatible with ionCube Loader. If you rely on ionCube Loader for your site, do not upgrade to PHP 8.1 at this time.
And now, let’s see how to enable PHP 8.1 on your sites!
How to Switch to PHP 8.1
To upgrade to PHP 8.1, log in to MyKinsta and navigate to your site’s Tools tab.
Under the PHP Engine option, click Modify and choose PHP 8.1 from the dropdown menu:
The upgrade process will take a few minutes and it’ll require your PHP engine to restart. This will make your WordPress backend unavailable for a few seconds only. Your visitors won’t experience any issues at all.
Once the upgrade has successfully finished, you’ll receive a notification directly in MyKinsta.
For more information on the exciting upgrades in the latest version of PHP, be sure to check out our in-depth guide on PHP 8.1 and subscribe to our newsletter!