Httpd[10905]: AH00526: Syntax error on line 398 of /etc/httpd/conf/httpd.conf

[root@centos ~]# systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details.
[root@centos ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-02-26 20:31:21 EST; 3s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 10906 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 10905 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 10905 (code=exited, status=1/FAILURE)

Feb 26 20:31:21 centos.manjot.net systemd[1]: Starting The Apache HTTP Server…
Feb 26 20:31:21 centos.manjot.net httpd[10905]: AH00526: Syntax error on line 398 of /etc/httpd/conf/httpd.conf:
Feb 26 20:31:21 centos.manjot.net httpd[10905]: Either all Options must start with + or -, or no Option may.
Feb 26 20:31:21 centos.manjot.net systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Feb 26 20:31:21 centos.manjot.net kill[10906]: kill: cannot find process “”
Feb 26 20:31:21 centos.manjot.net systemd[1]: httpd.service: control process exited, code=exited status=1
Feb 26 20:31:21 centos.manjot.net systemd[1]: Failed to start The Apache HTTP Server.
Feb 26 20:31:21 centos.manjot.net systemd[1]: Unit httpd.service entered failed state.
Feb 26 20:31:21 centos.manjot.net systemd[1]: httpd.service failed.

The error is clear: “Either all Options must start with + or -, or no Option may.”

You have an Indexes option without a + or -. So, add a + if you want indexes enabled. If this is in your Server Templates in Virtualmin, you’ll want to fix it there, too, so future virtual hosts get setup correctly.

1 Like