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.

Some applications like Pligg require zlib compression enabled by default in the PHP engine. For this purpose you can easily enable it by placing the following line in a local php.ini file:

zlib.output_compression = On

Please note that this php.ini file has to be copied to each folder requiring the above settings. This is necessary because settings in php.ini files do not apply recursively.

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Does Hostlantern support PHP HTTP Authorization?

Hostlantern supports the PHP HTTP Authorization and in order to enable it you need to add the...

Is PHP Safe Mode turned Off on Hostlantern’s servers

PHP Safe Mode is by default turned off for all PHP versions available on Hostlantern servers....

What is SourceGuardian and how to use it?

SourceGuardian is commercial software which allows you to securely encode, compile and encrypt...

How to install Smarty Template Engine

Follow the steps below to install Smarty Template Engine on your hosting account: Download the...

My script requires ionCube loaders Do you have ionCube installed?

The ionCube loaders PHP extension is installed on all of our shared hosting servers by default....