Mod_Deflate or Gzip is not enabled on my Server

  Print

Mod_Deflate or Gzip is not enabled on my Server


All servers should come with mod_deflate and/or gzip enabled. If you are experiencing any issues with these, you will need to check if zlib.output_compression is enabled as well.

Without zlib.output_compression, gzip or mod_deflate will fail to run.

Once it's enabled, you can confirm it's turned on by testing your website here: whatsmyip.org/http-compression-test

Enabling zlib.output_compression in WHM
If you are looking to update this for a single account, you can do so from within the cPanel through the guide below.


Step 1 -
Log into WHM using root credentials and open up MultiPHP INI Editor.

82703a07e451f72d5363d135f40de0f68e021f63?t=4936be39c00a89f745de24b7cdb69ce2


Step 2 -
Select the appropriate PHP version.

1d1b3a9b34c7030f21c3b6006a9afc3250310f9e?t=2bb77fb23db90657469eb551b67e7206


Step 3 -
Scroll to the bottom and look for zlib.output_compression, make sure it is (1) Enabled and then (2) Apply.

7051b09968a3fb50a073543803d897a8ab6e0d86?t=0452bd965e8c0f70bd0aa1e0c7e9e2a4


Enabling zlib.output_compression in cPanel
Step 1 - Log into cPanel for the account and click into MultiPHP INI Editor.

36699249c447147e02eabe3d5a9c234f83d25017?t=6c8b252c4b2bc65515ed7262f87d9da2


Step 2 -
Select the website or directory.

f4e0c8734f0276e6e9e5fa99b6c5cbbe129d6130?t=83e223af41f31294dc7df985cca9f73a


Step 3 -
Scroll to the bottom and look for zlib.output_compression, make sure it is (1) Enabled and then (2) Apply.

1c57197b9ecc79d41b34b58c0b9c96e45cbaa3ea?t=f99d6db4fd0e372857bf12f845693616



Did you find this article useful?  

Related Articles

© Crucial