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


The mod_file_cache Apache module caches a static list of files into the Apache server memory.


This module lowers the server load from frequent requests to static or infrequently-changed files. You cannot use this module to speed up CGI programs or other files that depend on special content handers. Use this module only for files that the Apache core content handler usually serves. The mod_file_cache Apache module uses a list of statically-configured files via MMapFile or CacheFile directives.


If the mod_file_cache Apache module is not configured correctly, your site may become unusable.


This module has no requirements.


This module has no known compatibility issues.

How to install or uninstall mod_file_cache

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

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

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


    • To access EasyApache from the command line interface, run the /scripts/easyapache script as the root user.
    • For more information on EasyApache, read our EasyApache documentation.
  2. Select the profile that you wish to modify.

  3. Click the  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 Options List stage.
  7. Perform one of the following actions in the Exhaustive Options List stage: 
    • To install the mod_file_cache Apache module, select the File Cache option.
    • To uninstall the mod_file_cache Apache module, deselect the File Cache option.
  8. Click Save and Build.

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

The following table provides information about how EasyApache refers to the mod_file_cache Apache module: 

EasyApache module namemod_file_cache
EasyApache Profile EntryApache:optmods:FileCache

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

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


The following table provides information on changes to the mod_file_cache Apache module within EasyApache, and content changes to this document:

DateEasyApache versionActionDetails
2/11/20143.24.11Doc updateImplemented case 73225: Remove Apache 1.3 and 2.0
1/31/20133.18.0Doc updateImplemented case 51105: Update for Apache 2.4

Vendor documentation

The following text is an excerpt from the website:

Caching frequently requested files that change very infrequently is a technique for reducing server load.  mod_file_cache  provides two techniques for caching frequently requested staticfiles. Through configuration directives, you can direct  mod_file_cache  to either open then mmap() a file, or to pre-open a file and save the file's open file handle. Both techniques reduce server load when processing requests for these files by doing part of the work (specifically, the file I/O) for serving the file when the server is started rather than during each request.


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

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

Apache version
2.2Caching Guide
2.4Caching Guide