In this article, we'll discuss how to enable/disable Apache or PHP modules using the EasyApache tool in WHM. EasyApache is a powerful script that allows you to customize your profile by enabling or disabling Apache and PHP modules.
Please note that during this process, cPanel will rebuild Apache and PHP with the options you select/deselect. This is necessary when you upgrade the Apache/PHP version or enable/disable modules of PHP and Apache. You would require root access on your VPS or dedicated server to perform these steps.
Step 1: Log in to WHM as a root user.
Step 2: Under the Software section, click the EasyApache option.

Step 3: On the next screen, you will see the current Apache configuration (current profile) under Previously Saved Config. Hover the mouse over the gear icon Customize Profile under the Action column.

Step 4: On the next screen, you will see the EasyApache wizard consisting of the following stages.
Apache Version == At this stage, the EasyApache build process allows you to select the Apache version you want to use in your profile. If you wish to enable or disable modules, then you should leave this option as the default and click the Next Step button.

PHP Version == At the next stage, the EasyApache build process allows you to select the PHP version you wish to choose. If you want to enable or disable modules, you should leave this option as the default and click the Next Step button.

PHP Extensions = = For each installed PHP version, you can enable/disable PHP Extensions by checking or unchecking the corresponding boxes. This allows you to add required PHP functionality without affecting other PHP versions.

Step 5: After making the desired changes, click Review. WHM will show a summary of your selections. Confirm that all changes are correct.

Step 6: Click Provision to apply your changes. EasyApache 4 will install or remove the selected modules and extensions without rebuilding the entire Apache/PHP stack. Wait until the process completes. You will receive a confirmation once the provisioning finishes successfully.

Unlike EasyApache 3, EasyApache 4 does not require a full rebuild for most module changes, making it faster and safer.
Only install the modules and extensions you need to maintain optimal server performance.
If any dependencies are missing, WHM will automatically suggest additional packages required for your selected modules.