I installed PHP 5.6.17
on a CentOS 6.4 server using this guide. A Contao installation is running on that server. Contao comes with these directives in its default .htaccess:
##
# Gzip compression
# @see https://github.com/h5bp/html5-boilerplate
##
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
</IfModule>
</IfModule>
This enables the automatic Gzip compression. However, on that server I noticed that the mod_filter
extension wasn't enabled by default, even though it should be part of the php56w-common
package (see https://webtatic.com/packages/php56/). I did notice that there is a mod_ext_filter
extension enabled though - I changed my directives accordingly (replacing mod_filter
with mod_ext_filter
) which seems to work.
I never saw mod_ext_filter
before so I am wondering what's the exact difference between these two modules (and why the more common (?) mod_filter
module wasn't available in the php56w-common
package for CentOS).