Enable Gzip Compression in cPanel (Apache mod_deflate)

  Web Hosting

Apache mod_deflate (Gzip Compression) module is used for compressing content before serving to client. This means that content of your site will be served by the Apache Web Server in a compressed form.

To enable the Gzip compression for your site, follow the steps using cPanel web interface.:

Step 1 – Login to cPanel Account

Login to your cPanel account using web interface first. The default URL of cPanel access will be like below

https://mydomain.com:2083 or https://cpanel.yourdomain.com

Step 2 – Open Optimize Website Panel

After login to the cPanel account, Under the Software section, you will find option Optimize Website . Just click on Optimize Website icon to open settings.

Step 3 – Enable Apache Gzip Compression

At this page, you will find three options to select. Get below details of each option and select the appropriate option.

  • Disabled – Select this option to disable gzip compression for you website and click Update Settings.
  • Compress all content – Select this option to compress all your website’s content and click Update Settings.
  • Compress the specified MIME types – Select this option and input the MIME types in below text box to compress specific files only and click Update Settings. MIME types list on Wikipedia

 

And you have all done. You have successfully enabled Gzip compression for your site. Use this link to verify the compression.