Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the deflate module enabled, it shows up in apachectl -t -D DUMP_MODULES, the config files are in the right place and some gzip testing tools say that it is enabled.

The only problem is the compressed size is the same as the uncompressed size (using curl --compressed -I and curl -I

I'm running out of things to test. As far as I can see it should be working.

Can anyone help?

share|improve this question

I recommend use Tamper Data Firefox plugging to debug. In it, you can see all HTTP headers and compare with the mod_deflate directives. Probably mod_deflate configuration error.

Also try log compression ratios:

DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio

LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog logs/deflate_log deflate
share|improve this answer
up vote 1 down vote accepted

PHP and Apache were fighting it out for compression.

I changed php.ini to:

output_buffering = Off

zlib.output_compression = Off

and compression works fine now.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.