How to Change PHP Version

Our hosting services allow the use of multiple PHP versions, depending on your preference. We recommend using a recent PHP version that is officially supported by the PHP community.

How to Change PHP Version with Web Hosting, Reseller Hosting, or WordPress Hosting:

Change your PHP version from your control panel:

  1. Log in to cPanel.
  2. Under Software, click on Select PHP Version. Select PHP version
  3. In the PHP Version pull down menu select the PHP version you want and click on Set as current. PHP Selector
  4. For advanced users: Tick the PHP modules you want active and click Save or click Use Defaults if you prefer using the default recommended modules.

Your site will immediately use the new PHP version.

Some important things to consider:

  • We don’t advise you to use the Native version of PHP since this version may get changed over time and doesn’t provide the same settings
  • With WHC, you can use older versions of PHP securely thanks to HardenedPHP technology.
  • Changing the PHP version using the method above will affect all your websites on your account.

How to Change PHP Version with a Cloud or Dedicated Server:

The following method will work with the default CentOS operating system:

  1. Log in to  WHM
  2. Under Software, click on MultiPHP Manager.
  3. Scroll down near the bottom and find the account(s) you wish to modify
  4. In the PHP Version column, select the PHP version you want using the drop-down menu. Your change will immediately take effect.
  5. Optionally, activate the PHP-FPM acceleration by clicking on the toggle to that effect.

If you’re using CloudLinux on your server, the first method described for changing PHP version is recommended

Was this answer helpful?

Related Articles

Increase PHP Upload Limit (or any other PHP setting)

By default, your PHP scripts hosted on Web Hosting Canada’s servers will use the PHP settings we...

Which versions of PHP do you support?

We support all modern versions of PHP with all our web hosting, Reseller hosting, Cloud, and...