Oracle HTTP Server 12c fails to start with "Invalid command 'AddOutputFilterByType'" error (Doc ID 2146719.1)

Last updated on JUNE 13, 2016

Applies to:

Oracle HTTP Server - Version 12.2.1.0.0 to 12.2.1.0.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

Trying to enable mod_deflate on Oracle HTTP Server 12.2.1.0.0 running on Linux x86-64 as documented in

  Oracle Fusion Middleware Administering Oracle HTTP Server
  2.2 Apache HTTP Server and Third-party Modules in Oracle HTTP Server
  Table 2-1 Apache HTTP Server and Third-party Modules in Oracle HTTP Server
  https://docs.oracle.com/middleware/1221/webtier/administer-ohs/under_mods.htm#BABHCDGG

LoadModule deflate_module "${PRODUCT_HOME}/modules/mod_deflate.so"
<IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/plain
</IfModule>



However, when OHS is started the following error is returned:

Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Connecting to Node Manager ...
Successfully Connected to Node Manager.
Starting server Test1221 ...
This Exception occurred at Tue May 31 11:21:10 EDT 2016.
weblogic.nodemanager.NMException: Received error message from Node Manager Server: [Server start command for OHS server 'OHS_COMPONENT_NAME' failed due to: [Failed to start the server OHS_COMPONENT_NAME
Check log file DOMAIN_HOME/system_components/OHS/ohs_nm.log
Check log file DOMAIN_HOME/servers/OHS_COMPONENT_NAME/logs/OHS_COMPONENT_NAME.log]. Please check Node Manager log and/or server 'OHS_COMPONENT_NAME' log for detailed information.]. Please check Node Manager log for details.
Problem invoking WLST - Traceback (innermost last):
 File "DOMAIN_HOME/bin/start.py", line 4, in ?
 File "", line 188, in nmStart
 File "", line 240, in raiseWLSTException
WLSTException: Error occurred while performing nmStart : Error Starting server OHS_COMPONENT_NAME : Received error message from Node Manager Server: [Server start command for OHS server 'OHS_COMPONENT_NAME' failed due to: [Failed to start the server OHS_COMPONENT_NAME
Check log file DOMAIN_HOME/system_components/OHS/ohs_nm.log
Check log file DOMAIN_HOME/servers/OHS_COMPONENT_NAME/logs/OHS_COMPONENT_NAME.log]. Please check Node Manager log and/or server 'OHS_COMPONENT_NAME' log for detailed information.]. Please check Node Manager log for details.
Use dumpStack() to view the full stacktrace :



ohs.nm.log
-----------------
<2016-05-31 11:21:09> <INFO> <OHS-0> <AH00526: Syntax error on line 131 of <Staging Directory>/OHS_Component_Name/httpd.conf:>
<2016-05-31 11:21:09> <INFO> <OHS-0> <Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration>

 

 



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms