Apache Module: cPanel


Last modified: March 26, 2024

Overview

The mod_cpanel Apache module replaces the Optimize .htaccess (AllowOverride) feature that existed in the Global Configuration section of WHM’s Apache Configuration interface (WHM » Home » Service Configuration » Apache Configuration). We removed the Optimize .htaccess feature with the release of TSR-2018-0002. This module also redirects any requests sent to a suspended user’s files.

This module is not available on systems that run the UbuntuĀ® operating system.

Usage

Use the mod_cpanel Apache module to improve how Apache processes requests. This module caches requests for .htaccess files that do not exist, which allows Apache to skip these files when it processes later requests.

Requirements

This module requires EasyApache 4 and Apache 2.4 or later.

Compatibility

This module has no known compatibility issues.

How to install or uninstall the module

In the interface

You can install or uninstall the mod_cpanel Apache module in WHM’s EasyApache 4 interface (WHM » Home » Software » EasyApache 4).

On the command line

To install the mod_cpanel Apache module in EasyApache 4, run the following command on the command line:

yum install ea-apache24-mod_cpanel

To uninstall the mod_cpanel Apache module in EasyApache 4, run the following command on the command line:

yum remove ea-apache24-mod_cpanel

Additional Documentation