- Older versions of Apache used the mod_gzip module for data compression. In practice, the mod_deflate module for Apache 2 provides the same functionality as the mod_gzip module.
- The mod_deflate module is already installed on shared hosting accounts, and we can install it on managed VPS and dedicated servers as well at your request. If you need further assistance, please open a support ticket at https://my.hosting.com.
cPanel (managed) hosting accounts
To enable data compression on cPanel-based hosting accounts, follow these steps:-
Log in to cPanel.
๐ Note If you do not know how to log in to your cPanel account, please see this article.
- Before enabling compression checkย that zlib.output_compression is enabled by using the Select PHP Version tool. For complete instructions on changing PHP settings, please see this article.
-
On the Tools page, in the Software section, click Optimize Website:
-
On the Optimize Website page, under Compress Content, select one of the following options:
- Compress All Content: Select this option if you want to compress all of your content.
-
Compress the specifiedย MIMEย types: Select this option if you want to compress specific types of content. In the MIME Types text box, type the MIME types that you want to compress.
๐ Tip To view a complete list of MIME types, please visit https://www.iana.org/assignments/media-types/media-types.xhtml.
- Click Update Settings. The new settings take effect immediately. To verify that data compression is active, please see Determining if compression is enabled below.