How to enable gzip compression (Apache mod_deflate) in cPanel

To speed up loading times for your site and to save bandwidth, you can enable gzip compression. This means that the content of your site will be served by the Apache Web Server in a compressed form.

Please notice that the Apache mod_deflate module must be installed on the server. Contact your host if you are unsure.

cpanel optimize website
cPanel Optimize Website

To enable the gzip compression for your site, follow the steps:

  1. Go to yourdomain.com/cpanel and log in
  2. Look for Optimize Website entry (SOFTWARE cPanel section)
  3. Here you have 3 options:
    Disabled – which will disable the compression
    -Compress All Content – with this option all content will be compressed
    -Compress the specified MIME types – here, you will be able to input only certain MIME file types.
  4. So, choose the second option and click the Update Settings button. A confirmation message will appear: Website optimization preferences updated. Content compression is now enabled. Content compression is now enabled for all content.
  5. Your site is using now gzip compression.

You can test if the gzip compression is working on your site at https://www.giftofspeed.com/gzip-test/

And the video tutorial:

gzip compression in cPanel

Resources:
Apache Module mod_deflate

This Post Has 3 Comments

  1. Winner Prestasi

    saya pakai ahtml biasa tidak bisa untuk gzip, dan sudah saya buat pakai model htaccess ttp aga susah tidak terdetact gzip

  2. bhargav

    I have enabled and updated settings but still not enabled showing when I checked

  3. Swati D - Think as a Human

    nice info

Leave a Reply