I’m trying to setup an Apache according with this tutorial for CentOS 8
.
By the end of the tutorial, I cannot restart httpd.
I get this error:
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-03-12 16:46:21 CET; 8min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 8469 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 8469 (code=exited, status=1/FAILURE)
Mar 12 16:46:21 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
Mar 12 16:46:21 localhost.localdomain httpd[8469]: AH00526: Syntax error on line 4 of /etc/httpd/sites-enabled/<>.net.conf:
Mar 12 16:46:21 localhost.localdomain httpd[8469]: Invalid command 'DecumentRoot', perhaps misspelled or defined by a module not included in the server configuration
Mar 12 16:46:21 localhost.localdomain system[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 12 16:46:21 localhost.localdomain system[1]: Failed to start The Apache HTTP Server.
Mar 12 16:46:21 localhost.localdomain system[1]: Unit httpd.service entered failed state.
Mar 12 16:46:21 localhost.localdomain system[1]: httpd.service failed.
[tmaciocha@localhost sites-enabled]$
What can I do to force it to start ?
4
Answers
Do you mean this file ? /etc/httpd/sites-enabled/domain.net.conf
enter image description here
You cannot force Apache to start, with that error; post your
.conf
file, maybe you have errors therehttpd.conf
There was error with a letter 🙂 Document Root instead of Document Root