gzip enabled but not working

Gojko

Well-Known Member
Nov 24, 2014
112
7
68
Macedonia
cPanel Access Level
Root Administrator
two vps the same .htaccess newest whm/cpanel version EA4 enabled deflate but
on first website don't work on second work.
i tried 5 websites for gzip compression and all 5 show second vps(website) has working compression but first not.

Any tip?
 
Last edited:

Gojko

Well-Known Member
Nov 24, 2014
112
7
68
Macedonia
cPanel Access Level
Root Administrator
Well, after 2days searching solution i found this Compression not working
and this in php.ini .user.ini
Code:
output_handler = Off
zlib.output_compression = On
zlib.output_handler = ob_gzhandler
solve the problem i don't know why extra code is needed to work but it work, if someone from cpanel support saw this thread can answer why this bug is not fixed or something like that
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
solve the problem i don't know why extra code is needed to work but it work, if someone from cpanel support saw this thread can answer why this bug is not fixed or something like that
Hello,

That's the normal behavior, as PHP compression is enabled separately from mod_deflate. cPanel version 68 will add the zlib.output_compression option to the MultiPHP INI Editor feature in cPanel and WHM. Additionally, a note in the "Optimize Website" feature within cPanel will direct users on how to enable the zlib.output_compression option for PHP to help clarify this point.

Thank you.