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
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Can I use cURL with my account?

Yes, all of our servers have cURL enabled. The path to cURL is /usr/bin/curl .

Do you support Python?

Yes, we do. The path to Python is /usr/bin/python .

What is Perl?

Perl stands for 'Practical Extraction and Reporting Language'. Perl is a versatile programming...

What permissions should I run my Cgi scripts under?

All CGI scripts should be placed in the CGI-BIN and set to chmod 755.

Do you support installation and use of PHPBB?

We have one touch installs for XMB, PHPBB, and Invisionboard. Here are some links to some...