zlib output compression and w3tc

  • Posted on November 16, 2014
  • newbieAsked by newbie

Hello, 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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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