Unable to restart apache: Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration

Created:

2017-02-21 05:17:01 UTC

Modified:

2017-08-08 13:45:52 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to restart apache: Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration

Symptoms

Unable to restart apache:

AH00526: Syntax error on line 3 of /etc/httpd/conf.d/deflate.conf:
Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration

AddOutputFilterByType directive is used in /etc/httpd/conf.d/deflate.conf file.

Cause

AddOutputFilterByType directive by mod_filter is used in apache but mod_filter is not enabled.

Resolution

Enable mod_filter:

1. Un-comment the following line in /etc/httpd/conf.modules.d/00-base.conf:

LoadModule filter_module modules/mod_filter.so 

2. Restart apache

Have more questions? Submit a request
Please sign in to leave a comment.