Page tree
Skip to end of metadata
Go to start of metadata

Overview

The mod_deflate Apache module provides the deflate output filter, which compresses your server's output before Apache sends data.

Usage

Use this module if you want to reduce the amount of bandwidth that your server uses to transfer data.

Requirements

This module has no requirements.

Compatibility

This module has no known compatibility issues.


Warning:

cPanel & WHM no longer develops EasyApache 3 and only releases security updates for it. We will deprecate EasyApache 3 on December 31, 2018. After that date, we will no longer update EasyApache 3. In cPanel & WHM version 78, we will remove support for EasyApache 3. For more information, read our cPanel Long-Term Support documentation.

If you do not upgrade to EasyApache 4, you cannot upgrade to cPanel & WHM version 78. We strongly recommend that you upgrade to EasyApache 4. For more information, read our EasyApache 4 documentation.

Featured documentation

  EasyApache 3

IntroductionFAQ

Change Log Release Notes  

ProfilesCustomization

Tomcat

Migrate from Tomcat 5.5 to 7

How to Deploy Java Applications


Important:

EasyApache 3 does not support new installations of Tomcat.

EasyApache 4 now supports Tomcat 8.5 on an Experimental basis. You must install the Experimental Repository to use Tomcat and create a new Tomcat installation. You cannot migrate from EasyApache 3 to EasyApache 4 if your server runs Tomcat. We will add this functionality in cPanel & WHM version 76. For more information, read our Tomcat documentation.

How to install or uninstall mod_deflate

Module status in default profiles

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

  • Basic
  • Mod Ruid2
  • MPM ITK

Note:

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

Installation steps

Important:

You must enable compression for each individual web site.

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

  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  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.
  7. Perform one of the following actions in the Exhaustive Options List stage:
    • To install the mod_deflate Apache module, select the Deflate option.
    • To uninstall the mod_deflate Apache module, deselect the Deflate option.
  8. Click Save and Build.
  9. After the build completes, use cPanel's Optimize Website interface (Home >> Software/Services >> Optimize Website) to enable compression for each website.

To test whether the mod_deflate Apache module is working, compare the number of bytes that your server transfers with compression disabled to the number of bytes that your server transfers with compression enabled.

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_deflate Apache module: 

EasyApache module namemod_deflate
EasyApache Profile EntryApache:optmods:Deflate

To enable or disable the mod_deflate Apache module in a custom EasyApache profile file, set the  Apache:optmods:Deflate  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_deflate Apache module within EasyApache, and content changes to this document:

DateEasyApache versionActionDetails
2/11/20143.24.11Doc update

Implemented case 73225: Remove Apache 1.3 and 2.0

10/21/30133.22.17EA update

Implemented case 78853: mod_deflate is now enabled by default for Apache 2.X

4/15/20133.18.13Doc update

Fixed case 64136: Updated link to documentation for Deflate.pm

1/31/20133.18.0Doc updateImplemented case 51105: Update for Apache 2.4

Relate documentation

For more information on how to configure compression, read our Apache Module: Deflate documentation.

Vendor documentation

For more information on the mod_deflate Apache module, read the following documentation: