2 January 2024

You can change the PHP version for one or more websites via cPanel’s MultiPHP Manager. To illustrate, the below image shows that I have three domains, each of which uses a different PHP version.

A screenshot of the MultiPHP Manager page in cPanel. It shows that the system version is PHP 7.2 and that I have three domains. Each domain uses a different PHP version.
cPanel’s MultiPHP Manager

As you can see, the domain foo.bar uses PHP 7.0. That is a very old PHP version that is no longer maintained, which is bad for both security and performance. You can change the PHP version for one or more domains as follows:

  • Make a note of the current PHP version your website uses, so that you can change the version back if needed.
  • Tick the checkbox to the left of the domain.
  • Select the PHP version you want to use from the PHP Version drop-down menu.
  • Click Apply.

After you have changed the PHP version you should always check if your website still works properly. If you see any errors then the new PHP version isn’t compatible with your website’s PHP code. In that case you can change the PHP version back again.

Warnings

You might get a warning when you change the PHP version for a domain. Unfortunately, these warning’s can be rather incomprehensible. In most cases, you can ignore the warning, but of course you shouldn’t blindly ignore warnings.

I have described the most common warnings in the longer article about changing PHP version in cPanel. Of course, also feel free to contact us if you are unsure whether or not you can ignore a warning.