How to Install or Uninstall the mod_cpanel Apache Module in EasyApache 4?

  WHM

Introduction

The mod_cpanel Apache module replaces the Optimize .htaccess (AllowOverride) feature that was previously available in the Global Configuration section of WHM’s Apache Configuration interface. This module allows cPanel & WHM to manage specific Apache configurations more efficiently. Administrators can install or remove the module through the EasyApache 4 interface or by using command-line tools.

Prerequisites

Before proceeding, ensure that:

Procedure

Install or Uninstall via WHM

Install via Command Line

Run the following command:

$ yum install ea-apache24-mod_cpanel

Uninstall via Command Line

Run the following command:

$ yum remove ea-apache24-mod_cpanel

Conclusion

You have successfully learned how to install or uninstall the mod_cpanel Apache module using either the EasyApache 4 interface in WHM or the command line. After making changes, verify that Apache is functioning correctly and review your website configurations to ensure they continue to operate as expected. Regularly maintaining Apache modules helps keep your server optimized and compatible with current cPanel & WHM features.

LEAVE A COMMENT