HostPro
← Back to Knowledge Base
WordPress Guides

How to Change PHP Version in cPanel

Different versions of WordPress and its plugins may require different PHP versions. Here is how to change it:

  1. Login to cPanel.
  2. In the Software section, click on "Select PHP Version".
  3. You will see your current PHP version. Click on the version number to see a dropdown of available versions.
  4. Select the desired version (e.g., PHP 8.1 or 8.2) and click "Set as current".
  5. 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.

Was this article helpful?