Menu Close

How to Enable or Disable Apache Modules or PHP Modules Using EasyApache

You can use the Apache updater (called “EasyApache”) to enable Apache or PHP modules, such as cURL.

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 while you upgrade Apache/PHP version or enable/disable modules of PHP and Apache. To perform these steps you would require root access on your VPS or dedicated server.

 

  1. Login to WHM as root user.
  2. Under Software section, click EasyApache option. At next screen, you would see the current Apache configuration (current profile) under Previously Saved Config. Hover the mouse over gear icon Customize Profile located under Action column.

default-saved-configuration

At next screen, you would see EasyApache wizard consisting of following stages.

  • Apache Version == At this stage, EasyApache build process allows you to select Apache version you want to use in your profile. If you just want to enable or disable modules then you should leave this option as default and click on Next Step button.

 

apache-profile

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

select-php-version

 

To Enable ApacShort Options List == At Short Options List stage, EasyApache build process allows you to select the features you wish to include in your EasyApache profile. Go through the Short Options List and enable the modules you wish to add. You can also disable the unwanted modules by deselecting them. Make sure that you just enable only what you need since installing too many modules can cause server performance issues.

At the bottom of this page, you will have an option to Save and Build your profile as it is now. As an alternate option, you can go to the Exhaustive Options List for further configuration options.

short-options-list

Exhaustive Options List == You would not see this stage, if you chosen to build the profile in the previous stage. At this stage, EasyApache build process allows you to select more features to include with your EasyApache profile. Here, you will have exhaustive configuration options to tweak Apache, PHP and other modules. Select an option to enable and deselect to disable it.

exhaustive-options-list

Once you select/deselect modules, scroll down to the bottom of the page. If you choose to Save only (Do NOT Build) option, the cPanel will just save your profile. To build your profile, click on Save and Build option. If any necessary adjustments are required, you will be notified and forwarded automatically to the build page. Please be patient and do not to close the browser during this process since Apache rebuild may take some time depending on your settings.

save-build

In General:

  1. Log in to WHM as the ‘root’ user.
  2. In the Find box type easy.
  3. Click EasyApache (Apache Update).
  4. Leave default, and then click the gear icon (Customize Profile).
  5. Leave default, and then click Next Step.
  6. Click Exhaustive Options List.
  7. Click the name of the Apache or PHP module, and then click Save and build.

During this process cPanel rebuilds Apache and PHP with the options selected. This process can take time to complete and should not be interrupted as it can lead to problems on your server.