zlib output compression and w3tc

Posted November 16, 2014 10.6k views

if i enable zlib output compression while im using w3tc will it crash? i heard if i set zlib output compression turned on w3tc will not work. can someone give me some details idea on it?

also, i have seen many peoples using without zlib output compression. for php 5.5 and with w3tc with cloudflare will it give any dramatic changes if i install zlib output compression??

someone please give me some advice in details
im using ubuntu 14.04, apache, php 5.5

thanks in advance.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

W3 Total Cache has its own compression features built in to it. These do not seem to play well with enabling zlib compression in your PHP configuration. Helpfully, the user interface will prompt you to resolve the issue if it is enabled:


If you decide to use W3 Total Cache, make sure your php.ini file includes:

zlib.output_compression = off

On Ubuntu using the basic LAMP stack, you would need to edit /etc/php5/apache2/php.ini Make sure to restart Apache after making the change:

  • sudo service apache2 restart