We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.
We will continue to maintain our API documentation on this server.
To change a domain's PHP version, perform the following steps:
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 on the server or is not available for your account.
Click Apply. The system will change the selected domain's PHP version.
When you change the PHP version for 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.