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

Started by senthil, Oct 17, 2025, 07:37 AM

Previous topic - Next topic

senthil

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

  • Log into Plesk
  • Go to Tools & Settings > PHP Settings  > <PHP version> > php. ini
  • Find and change the value of zlib.output_compression to a required one (on/off):
    zlib.output_compression = on
  • Scroll down and press the OK button to apply the changes

How to configure zlib.output_compression_level PHP directive?

  • Log into Plesk
  • Go to Tools & Settings > PHP Settings  > <PHP version> > php.ini
  • To change the compression level, find and change the value of the zlib.output_compression_level
    parameter:
    zlib.output_compression_level = -1Note: Compression level used for transparent output compression. Specify a value
    between 0 (no compression) to 9 (most compression). The default value, -1, lets the
    server decide which level to use.

  • Scroll down and press the OK button to apply the changes