Can you disable zlib.output_compression for one account?
I have one customer that needs to have zlib.output_compression disabled for a Wordpress plug in. Can I do this by adding
php_flag zlib.output_compression off in the main htaccess file for the account?
Or maybe a dummy PHP.ini file with this?
-
I tried to add a php.ini file with this in the domain's directory but the error still shows in the dashboard for w3 total cache. Any other ideas? output_buffering = Off output_handler = zlib.output_compression = Off 0 -
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. 0 -
Thanks, and yes it's server wide so the cPanel compression option will work. From what I understand the cPanel website optimization tool in cPanel requires it. 0 -
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 (https://go.cpanel.net/EA4ModifyINI) 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 zlib.output_compression Off On
Local = Off and Master=ON0
Please sign in to leave a comment.
Comments
4 comments