You can manage PHP extensions on your server using the EasyApache 4 interface within WHM. This process allows you to enable or disable specific PHP modules to meet the requirements of your applications or to optimize server performance.
Before you begin
You will need:
Root access to the WHM interface
A server running cPanel & WHM with EasyApache 4 enabled
Manage PHP extensions with EasyApache 4
Log in to WHM.
Navigate to Software > EasyApache 4.
Select the Current profile or click on a specific profile name to edit it.
Click on the PHP Extensions section to expand it.
Use the search bar or scroll through the list to find the specific PHP extension you wish to modify.
To install an extension, click the Install button next to the extension name.
To remove an extension, click the Remove button next to the extension name.
Click Review at the top or bottom of the page to see the changes that will be applied.
Click Provision to apply the changes to the server.
Warning: Removing a PHP extension that is required by your website's applications (such as WordPress or a custom script) can cause those applications to stop functioning. Ensure you have a list of required extensions before removing any.
Confirm the result
The EasyApache 4 interface will display a progress bar while the changes are being applied.
Once complete, the status will show "Success" or "Finished."
The specific extension will now either appear in the list as "Installed" or be removed from the list entirely.
Troubleshooting an EasyApache 4 build failure
If the "Provision" step fails, the system may leave the server in a partially updated state.
Check the EasyApache 4 page for a specific error message during the provisioning process.
If a specific module fails to build, it is often due to a missing dependency or a conflict with the current PHP version.
Review the server's error logs via the Report Errors or Apache Status tools in WHM to identify the specific module causing the failure.
If the issue persists, contact Hostek support with the specific error message and the name of the extension that failed to install.
