INFORMATICS

The Best

httpd.service failed

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

centos  httpd.service failed

 

Test apache

apachectl configtest

[root@bis etc]# apachectl configtest
httpd: Syntax error on line 364 of /etc/httpd/conf/httpd.conf: Syntax error on line 202 of /etc/httpd/conf.d/virtuals.conf: /etc/httpd/conf.d/virtuals.conf:202: was not closed.

check virtuals.conf line xxx

 

Here is the output of systemctl status httpd.service

[root@bis log]# 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 2019-10-18 15:12:00 CEST; 6min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 11550 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 11548 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 11548 (code=exited, status=1/FAILURE)

Oct 18 15:12:00 b1s.eu systemd[1]: Starting The Apache HTTP Server...
Oct 18 15:12:00 b1s.eu httpd[11548]: httpd: Syntax error on line 364 of /etc/httpd/conf/httpd.conf: Synta...osed.
Oct 18 15:12:00 b1s.eu systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 18 15:12:00 b1s.eu kill[11550]: kill: cannot find process ""
Oct 18 15:12:00 b1s.eu systemd[1]: httpd.service: control process exited, code=exited status=1
Oct 18 15:12:00 b1s.eu systemd[1]: Failed to start The Apache HTTP Server.
Oct 18 15:12:00 b1s.eu systemd[1]: Unit httpd.service entered failed state.
Oct 18 15:12:00 b1s.eu systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

 

 

Search