How to Enable/Disable Apache/PHP Modules Using EasyApache3?

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 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

  3. 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

    • Short 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 and Build

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to restart Apache to make httpd.conf changes permanent?

When cPanel is updated or Httpd service is restarted using WHM, the custom changes made in the...

How to Generate a Certificate Signing Request (CSR) with OpenSSL?

OpenSSL is a common utility used to generate a pair of private key and public Certificate Signing...

How to Upgrade Apache using EasyApache?

In this article we'll discuss how to upgrade Apache using EasyApache tool in WHM. EasyApache is a...

Locations of Common Log Files and Configuration Files for cPanel Services

This article covers the configuration file and log file locations of most common cPanel services....

How to Optimize Apache Web Server?

Apache is a freely available Web server that is distributed under an "open source" license....