INFORMATICS

The Best

Przełącznik języka

This Site

CMS

Hardware

Uncategorised

useful sites

Databases

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

1.png6.png6.png3.png6.png1.png8.png
Today609
Yesterday898
This week6183
This month11791
Total1663618

Visitor Info

  • IP: 3.231.229.89
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

6
Online

Friday, 13 December 2019 15:46

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.