I was looking for this simple solution to my problem, that even when mod_deflate is enabled, GZIP compression was not working.
So finally the simple thing to do in WHM was to chect this checkbox in
Multi PHP INI editor (choose php version)
and get this checked - zlib.output_compression
Must check that in apache you already enablem mod_deflate - in easy apache.