Enable mod_filter in Apache on CentOS

Date posted : 13/02/2019

Generally Apache installation comes with filter module. But its not enabled by default. When you try to use this specific module directive in your website configuration, it won’t work. You will see errors like below.

"Invalid command 'FilterDeclare', perhaps misspelled or defined by a module not included in the server configuration"

Solution:-

Add the following line to the httpd.conf.

LoadModule filter_module modules/mod_filter.so

Then restart web server

service httpd graceful

You can verify the output as below

# apachectl -t -D DUMP_MODULES |grep filter_module
 filter_module (shared)

Thanks for using pheonix solutions.

You find this tutorial helpful? Share with your friends to keep it alive. Be the first to comment, we value your suggestions.

Leave a Reply