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

Overview

This module looks at the first few bytes of a file to determine the file's MIME type. It acts as a complement to the mod_mime Apache module. 

Usage

Use the mod_mime_magic Apache module to provide an additional way to determine the MIME type of files when mod_mime cannot determine the type on its own. 

Note:

This module remains inactive unless you set the MimeMagicFile directive. To do this, add the following line of code to the /usr/local/apache/conf/magic file:

MimeMagicFile /usr/local/apache/conf/magic

Requirements

This module has no requirements.

Compatibility

This module has no known compatibility issues.

How to install or uninstall mod_mime_magic

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

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

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

    Notes:

    • 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 Short Options List stage.
  7. Perform one of the following actions in the Exhaustive Options List stage: 
    • To install the mod_mime_magic Apache module, select the Mime Magic option.
    • To uninstall the mod_mime_magic Apache module, deselect the Mime Magic 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_mime_magic  Apache module: 

EasyApache module name

mod_mime_magic

EasyApache Profile EntryApache:optmods:MimeMagic

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

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

History

The following table provides information on changes to the mod_mime_magic 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 Apache.org website:

This module is derived from a free version of the file(1)  command for Unix, which uses "magic numbers" and other hints from a file's contents to figure out what the contents are. This module is active only if the magic file is specified by the MimeMagicFile directive.

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