Missing mod_deflate.so?

Peter asked:

I’m trying to build apache with mod_deflate enabled. When restarting apache I’m presented with the following error:

httpd: Syntax error on line 36 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_deflate.so into server: /usr/local/apache/modules/mod_deflate.so: cannot open shared object file: No such file or directory

How can I get mod_deflate.so?

My answer:


It looks like you compiled Apache yourself, but you didn’t choose to use the mod_deflate module. You’ll need to recompile it, and this time enable mod_deflate.

./configure --enable-deflate ...the rest of your options...

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.