Apache HTTPD not Starting With Invalid Command

Solution Verified - Updated -

Issue

  • I can't start httpd with service httpd start:

    # service httpd status
    Redirecting to /bin/systemctl status httpd.service
    ● httpd.service - The Apache HTTP Server
       Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Fri 2021-11-05 11:31:41 EDT; 1s ago
         Docs: man:httpd(8)
               man:apachectl(8)
      Process: 17601 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
     Main PID: 17601 (code=exited, status=1/FAILURE)
    
    Nov 05 11:31:41 Mellon-02 systemd[1]: Starting The Apache HTTP Server...
    Nov 05 11:31:41 Mellon-02 httpd[17601]: AH00526: Syntax error on line 16 of /etc/httpd/conf.d/autoindex.conf:
    Nov 05 11:31:41 Mellon-02 httpd[17601]: Invalid command 'IndexOptions', perhaps misspelled or defined by a module not included in the server configuration
    Nov 05 11:31:41 Mellon-02 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
    Nov 05 11:31:41 Mellon-02 systemd[1]: Failed to start The Apache HTTP Server.
    Nov 05 11:31:41 Mellon-02 systemd[1]: Unit httpd.service entered failed state.
    Nov 05 11:31:41 Mellon-02 systemd[1]: httpd.service failed.
    

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Red Hat Software Collections (RHSCL)
  • Red Hat JBoss Core Services (JWS)
  • Apache Web Server (HTTPD)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content