Compressed httpd data

Enabling zlib compression makes a huge difference to a http server. I stress tested this server using Apache Bench. Before compression was enabled I managed just over 1-2 requests of (large) pages per second, but with compression that rose to 10 requests per second! Just add this to a .htaccess file if you’re using PHP 4.

php_flag zlib.output_compression On

Update – Enabling compression that way here causes too many problems. I’ll have to try and convince Colm to install mod_gzip which works everywhere else I’ve used it.

You might also like

If you like this post then please subscribe to my full RSS feed. You can also click here to subscribe by email. There are also my fabulous photos to explore too!

Leave a Reply

Loading Facebook Comments ...