Articles in this section

How to disable/enable zlib.output_compression PHP directive in Plesk?

kb: how-to Plesk for Linux php_value

Applicable to:

  • Plesk Obsidian for Linux

Question

How to disable/enable zlib.output_compression PHP directive?

How to configure zlib.output_compression_level PHP directive?

Answer

How to enable/disable zlib.output_compression for PHP handler
  1. Log into Plesk
  2. Go to Tools & Settings > PHP Settings  > <PHP version> > php.ini
  3. Find and change the value of zlib.output_compression to a required one (on/off):

    CONFIG_TEXT: zlib.output_compression = on

  4. Scroll down and press the OK button to apply the changes
How to configure zlib.output_compression_level PHP directive?
  1. Log into Plesk
  2. Go to Tools & Settings > PHP Settings  > <PHP version> > php.ini
  3. To adjust the compression level, locate and modify the zlib.output_compression_level parameter.

    CONFIG_TEXT: zlib.output_compression_level = -1

    Note: Compression level used for transparent output compression. Specify a value between 0 (no compression) and 9 (maximum compression). The default value of -1 lets the server decide which level to use.

  4. Scroll down and press the OK button to apply the changes
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.