cPanel & WHM no longer develops or updates EasyApache 3. We deprecated EasyApache 3 on December 31, 2018. We removed support for EasyApache 3 in cPanel & WHM version 78.
Apache Module: UniqueID - EasyApache - cPanel Documentation
Page tree
Skip to end of metadata
Go to start of metadata

Overview

The mod_unique_id Apache module adds an environment variable to each Apache request. Apache sets the environment variable to a unique identification number (unique ID) for each Apache request.

Usage

Use the unique ID to reference a specific Apache request. For example, you can use unique IDs in Mod Security rules.

How to install or uninstall mod_unique_id

Module status in default profiles

The following EasyApache profiles include the mod_asis Apache module by default:

  • Basic
  • Mod Ruid2
  • MPM ITK

Note:

The Mod Ruid2 profile is only available if you do not use CloudLinux.

Installation steps

If you do not select one of the EasyApache profiles, perform the following steps to install or uninstall the mod_unique_id Apache module:

  1. Run EasyApache in WHM's EasyApache 3 interface (Home >> Software >> EasyApache 3).

    Note:

    To access EasyApache from the command line interface, run the /scripts/easyapache script as root.

  2. Select the profile that you wish to modify.

  3. Click the  icon that corresponds to your selection.

  4. Click Next Step in the Apache Version stage.
  5. Click Next Step in the PHP Version stage.
  6. Click Exhaustive Options List in the Short Options List stage.

    Note:

    If you select the Mod Security option in the Short Options List interface, EasyApache will enable mod_unique_id by default. For more information on Mod Security, read our Apache Module: ModSecurity documentation.

  7. Perform one of the following actions in the Exhaustive Options List stage:
    • To enable the mod_unique_id Apache module, select the UniqueId option.
    • To disable the mod_unique_id Apache module, deselect the UniqueId option.
  8. Click Save and Build.

How to enable or disable the module in a custom EasyApache profile file

The following table contains the module information that EasyApache stores in the profile file for the module:

EasyApache module namemod_uniqueid
EasyApache Profile EntryApache : optmods : UniqueId

To enable or disable the mod_unique_id Apache module in a custom EasyApache profile file, set the mod_unique_id profile entry to one of the following values:

  • 1 - This value enables the module.
  • 0 - This value disables the module.

Requirements

This module has no requirements.

Compatibility

This module has no known compatibility issues.

History

DateEasyApache versionActionDetails
2/11/20143.24.11Doc updateRemoved Apache 1.3 and 2.0
1/31/20133.18.0Doc updateAdded information for Apache 2.4
2/10/20123.9.1EA updateFix case 55980: mod Unique ID fails if you change hostname via command line

Related documentation

For more information on EasyApache, read our EasyApache documentation.

For more information on the Mod Security Apache module, read our Apache Module: ModSecurity documentation.

Vendor documentation

The following text is an excerpt from the Apache.org documentation:

This module provides a magic token for each request which is guaranteed to be unique across "all" requests under very specific conditions. The unique identifier is even unique across multiple machines in a properly configured cluster of machines. The environment variable UNIQUE_ID is set to the identifier for each request.

For more information on the mod_unique_id Apache module, click the following links: