Different versions of WordPress and its plugins may require different PHP versions. Here is how to change it:
- Login to cPanel.
- In the Software section, click on "Select PHP Version".
- You will see your current PHP version. Click on the version number to see a dropdown of available versions.
- Select the desired version (e.g., PHP 8.1 or 8.2) and click "Set as current".
- Check your website to ensure everything is working correctly.
If you see errors after changing the version, you can always switch back to the previous one in the same menu.