How to enable other php versions in WHM (EasyApache 4)
Enable additional PHP versions on your server in EasyApache 4 in WHM, and then assign a version to an account or domain in MultiPHP Manager. EasyApache 4 controls which PHP versions are available on the server, and MultiPHP Manager sets the version that each account or domain uses.
On this page
- Enable additional php versions on the server
- Set the php version for a whole account
- Set the php version for an individual domain
Before you begin
You must have WHM (root or reseller with the relevant ACL) access, not just cPanel access.
Enable additional PHP versions on the server
Before a PHP version can be assigned to an account or domain, it needs to be installed on the server via EasyApache 4.
- Log in to WHM.
- In the left menu search bar, type EasyApache 4 and select it under Software.
- Click Customize next to the current profile (or Start Customizing if none exists).
- On the PHP step, tick the checkbox for each PHP version you want to enable (for example PHP 7.4, PHP 8.1, PHP 8.2).
- For each enabled version, select the PHP extensions required (common ones include mysqli, curl, gd, mbstring, xml, zip).
- Click Next through the remaining steps (Apache MPM, Additional Packages, Review).
- On the Review page, confirm the changes and click Provision.
- Wait for EasyApache 4 to finish rebuilding Apache and PHP. This can take several minutes.
Once provisioning completes, the newly enabled PHP versions are available to assign in MultiPHP Manager.
Set the PHP version for the whole account
- In WHM, search for and open MultiPHP Manager.
- On the PHP Version tab, locate the account (domain) in the list.
- Tick the checkbox next to the account.
- Use the Set drop-down at the top of the page to choose the desired PHP version.
- Click Apply.
This sets the default PHP version for the primary domain and, unless overridden, all domains and subdomains under that account.
Set the PHP version for an individual domain
If an account hosts multiple domains or subdomains that need different PHP versions:
- In WHM, open MultiPHP Manager.
- On the PHP Version tab, find the specific domain or subdomain in the list (not just the main account).
- Tick the checkbox next to that domain.
- Choose the required PHP version from the Set drop-down.
- Click Apply.
This overrides the account default for that domain only. Other domains on the same account remain on their previously set version.