Skip to main content

How to Install or Remove a PHP Version With EasyApache 4

You can manage the available PHP versions on your server by using the EasyApache 4 interface within WHM. This allows you to install new PHP versions, remove unused ones, or modify specific PHP extensions for your server environment.

You can manage the available PHP versions on your server by using the EasyApache 4 interface within WHM. This allows you to install new PHP versions, remove unused ones, or modify specific PHP extensions for your server environment.

Before you begin

You will need:

  • Root access to the WHM interface

  • A server running cPanel & WHM with EasyApache 4 enabled

Manage PHP versions with EasyApache 4

  1. Log in to WHM.

  2. In the left-hand navigation menu, search for EasyApache 4 and select it.

  3. You will see a list of currently installed packages. Locate the section for PHP Versions.

  4. To add a version, find the desired PHP version in the list and click the Install toggle or checkbox.

  5. To remove a version, find the current version you no longer need and click the Remove toggle or checkbox.

  6. Click Provision at the top or bottom of the page to apply the changes.

Warning: Removing a PHP version will immediately make it unavailable for any websites or services currently using that specific version. Ensure no active websites are dependent on a version before removing it.

Confirm the result

  • The EasyApache 4 interface will display a progress bar while the changes are being applied.

  • Once complete, the page will refresh, and the status of the PHP version will reflect its new state (either "Installed" or removed from the list).

  • You can verify the available versions by checking the MultiPHP Manager in WHM to ensure the intended versions are available for assignment to domains.

Troubleshooting a failed configuration build

If the "Provision" process fails, it is often due to a conflict in the configuration files or a lack of disk space.

  1. Check the EasyApache 4 dashboard for a specific error message regarding the failed package.

  2. Verify that the server has sufficient disk space to complete the installation.

  3. If a specific PHP extension is causing the failure, try removing that specific extension from the EasyApache 4 list and running the Provision process again.

Limitations

  • This process affects the entire server. Changes made here will affect all cPanel accounts on the server.

  • Some PHP versions may not be available for installation depending on the specific OS version or the current cPanel & WHM license.

  • Changes to the PHP configuration via EasyApache 4 may take a few moments to propagate across all active processes.

Did this answer your question?