Can you disable zlib.output_compression for one account?


Well-Known Member
Feb 22, 2016
cPanel Access Level
Root Administrator
I got an option to enable/disable zlib.output_compression in cPanel > MultiPHP INI Editor.

Have you enabled zlib serverwide in WHM? If that's the case I'm not sure if a user can still choose to turn it off in cPanel.

On a sidenote, is it any pros to running zlib server wide? My understanding is that Apache can do such compression more effective, and for all type of content (css, assets etc.) not only PHP.

What I do know is that WordPress cache plugin (like W3 Total Cache) don't fancy zlib.output_compression at all.


Product Owner II
Staff member
Nov 14, 2017
Hi @WebHostPro

When you go to cPanel>>Software>>MultiPHP INI editor and disable it on that account does it not disable it? I tested this on mine and got:

; cPanel-generated php ini directives, do not edit
; Manual editing of this file may result in unexpected behavior.
; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
; For more information, read our documentation (

display_errors = Off
max_execution_time = 30
max_input_time = 60
max_input_vars = 1000
memory_limit = 32M
post_max_size = 8M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php72"
upload_max_filesize = 2M
zlib.output_compression = Off
Added to the .user.ini file

My phpinfo page indicates it's off as well:

curl mydomain.tld/phpinfo.php |grep zlib.output_compression
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 81742    0 81742    0     0  6020k      0 --:--:-- --:--:-- --:--:-- 6140k
<tr><td class="e">zlib.output_compression</td><td class="v">Off</td><td class="v">On</td></tr>
Local = Off and Master=ON