Set a domain's PHP version
To change a domain's PHP version, perform the following steps:
- Select the checkbox for the domain that you wish to change.
Select the desired version of PHP from the PHP Version menu. To always use the system default, select Inherit.
If you set your PHP version to Inherit, the system will not allow you to set PHP-FPM. You must select a PHP version other than Inherit to enable PHP-FPM on a domain.
If the PHP version that you want to use does not appear, that PHP version is either not installed or is not available for your account.
- If your system administrator limited your domain's PHP version, then you cannot use this interface to change the domain's PHP version back to its original version once changed.
Click Apply. The system will change the selected domain's PHP version.
The system displays a PHP-FPM enabled (✓) or disabled (×) indicator in the PHP-FPM column for each domain. System administrators can enable or disable PHP-FPM through WHM's MultiPHP Manager interface (WHM >> Home >> Software >> MultiPHP Manager).
- When you change the PHP version of your domain and FPM is enabled, the system changes your FPM version to match the PHP version. If FPM is not enabled on your domain, the system changes the PHP and FPM versions separately.
- If you enable FPM on a cPanel account's primary domain and then change that domain's name, the system will disable FPM for that new domain. The system administrator or hosting provider must reenable FPM on the new domain if you wish to use FPM for the new domain.