Home
/
Website Help
/
PHP Questions
/
How to enable zlib compression manually for PHP scripts?

How to enable zlib compression manually for PHP scripts?

PHP Zlib module allows you to transparently read and write gzip compressed files. Thus it is used for serving faster content to the end users by compressing the data stream.

To enable it, add the following line into your php.ini file:

zlib.output_compression = On

You can create/edit php.ini files using File Manager in Site Tools or via FTP.

If you are a SiteGround customer you can also enable the zlib compression using PHP Manager in Site Tools.

Share This Article