EasyApache 4 (EA4) is the software system that manages Apache, PHP, and other web services on your cPanel & WHM server. Through EA4, you can install additional PHP versions alongside your default version, allowing different cPanel accounts to use different PHP versions for their websites.

How to Install a Specific PHP Version via EasyApache 4

Step 1: Log in to WHM as the root user.

Step 2: Navigate to Home » Software » EasyApache 4.

Step 3: Click Customize next to the Currently Installed Packages section.

Step 4: On the Apache page, click Next to proceed (no changes needed here unless you also want to customize Apache modules).

Step 5: On the PHP Versions page, select the checkbox next to the PHP version you want to install (e.g., PHP 8.2, PHP 8.3, etc.).

Step 6: Click Next to continue through the remaining pages (PHP extensions and additional packages).

Step 7: On the review page, confirm your selections and click Provision.

WHM will now install the selected PHP version. This process may take several minutes depending on your server.

After Installation

Once installed, the new PHP version will be available for all cPanel accounts. Users can switch their domain's PHP version via cPanel » Software » MultiPHP Manager.

Important Notes

  • EA4 supports running multiple PHP versions simultaneously — installing a new version does not remove existing ones.
  • The default PHP version for the server can be changed under WHM » Software » MultiPHP Manager.
  • Only PHP versions provided by cPanel's EA4 repository are available. For very old or experimental versions, a Custom PHP Module (e.g., via CloudLinux) may be required.
  • Installing a PHP version only makes it available — it does not automatically assign it to any domain.
  • Always test new PHP versions on a staging site before switching production domains.

Troubleshooting

  • Provisioning fails? Check that your server has sufficient disk space and that YUM/APT repositories are accessible. You can also try running yum clean all or apt-get update from the command line.
  • PHP version not showing in MultiPHP Manager? Ensure provisioning completed successfully. If it did, try restarting Apache via WHM » Restart Services » HTTP Server (Apache).
  • Need to install custom PECL extensions? Use WHM » Software » PECL Manager after installing the desired PHP version.

For more information, see the official cPanel EasyApache 4 documentation.

Was this answer helpful? 0 Users Found This Useful (0 Votes)