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: MemCache - EasyApache - cPanel Documentation
Page tree
Skip to end of metadata
Go to start of metadata

Overview

The mod_mem_cache Apache module is a storage management module for the mod_cache Apache module. The mod_mem_cache Apache module directs mod_cache to store cached files in the server's memory instead of in a directory. 

Usage

Use the mod_mem_cache Apache module to store cached data in the server's memory.

To direct the mod_cache Apache module to store its cached data in a directory instead of in the server's memory, use the mod_disk_cache Apache module.

How to install or uninstall mod_mem_cache

The EasyApache profiles do not provide the mod_mem_cache Apache module by default.

To install or uninstall the mod_mem_cache Apache module, perform the following steps:

  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 the root user.
  2. Select the profile that you wish to modify.

  3. Click the gear icon () that corresponds to your selection.

  4. Select the Apache 2.2 option in the Apache Version stage.

    Warning:

    The mod_mem_cache Apache module is not compatible with Apache version 2.4. If you select the Apache 2.4 option on the Apache Version interface, the MemCache option will not be available on the Exhaustive Options List interface.

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

  8. Perform one of the following actions in the Exhaustive Options List stage:
    • To install the mod_mem_cache Apache module, select the MemCache option.
    • To uninstall the mod_mem_cache Apache module, deselect the MemCache option.
  9. 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_mem_cache
EasyApache Profile EntryApache: optmods: MemCache

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

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

Requirements

mod_cache

The mod_mem_cache Apache module requires the mod_cache Apache module.

Compatibility

Apache version 2.4

The mod_cache Apache module is not compatible with Apache version 2.4.

mod_ruid2

The mod_cache Apache module is not compatible with the mod_ruid2 Apache module. If you select the Cache and Mod Ruid2 options in EasyApache, EasyApache will not build the mod_cache Apache module.

History

DateEasyApache versionActionDetails
2/11/20143.24.11Doc updateRemoved Apache 1.3 and 2.0
1/31/20133.18.0Doc updateUpdate for Apache 2.4

Related documentation

Vendor documentation

The following text is an excerpt from Apache's website:

This module requires the service of mod_cache. It acts as a support module for mod_cache and provides a memory based storage manager. mod_mem_cache can be configured to operate in two modes: caching open file descriptors or caching objects in heap storage. mod_mem_cache is most useful when used to cache locally generated content or to cache backend server content for mod_proxy configured for ProxyPass (aka reverse proxy).

Content is stored in and retrieved from the cache using URI based keys. Content with access protection is not cached.

For more information on the mod_mem_cache Apache module, click the following link:

Apache versionDocumentation
2.2Apache Module mod_mem_cache

For more information on how to configure Apache caching, click the following links:

Apache version
Documentation
2.2Caching Guide
2.4Caching Guide