httpd service not started
Posted: 2018/01/07 15:53:32
When I want to start the httpd service, I get some errors which are shown as below
Actually, the /etc/httpd/conf/ssl.ca/ca-bundle is a zero sized file. Should I run some commands in order to create that file?
Code: Select all
[root@rocks-7 ~]# service httpd start
Redirecting to /bin/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@rocks-7 ~]# systemctl status httpd.service -l
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2018-01-07 10:51:50 EST; 8s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 6360 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 6358 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 6358 (code=exited, status=1/FAILURE)
Jan 07 10:51:50 rocks-7.scu.ac.ir systemd[1]: Starting The Apache HTTP Server...
Jan 07 10:51:50 rocks-7.scu.ac.ir httpd[6358]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf.d/411.conf:7
Jan 07 10:51:50 rocks-7.scu.ac.ir httpd[6358]: AH00526: Syntax error on line 23 of /etc/httpd/conf.d/central.conf:
Jan 07 10:51:50 rocks-7.scu.ac.ir httpd[6358]: SSLCACertificateFile: file '/etc/httpd/conf/ssl.ca/ca-bundle' does not exist or is empty
Jan 07 10:51:50 rocks-7.scu.ac.ir systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 07 10:51:50 rocks-7.scu.ac.ir kill[6360]: kill: cannot find process ""
Jan 07 10:51:50 rocks-7.scu.ac.ir systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 07 10:51:50 rocks-7.scu.ac.ir systemd[1]: Failed to start The Apache HTTP Server.
Jan 07 10:51:50 rocks-7.scu.ac.ir systemd[1]: Unit httpd.service entered failed state.
Jan 07 10:51:50 rocks-7.scu.ac.ir systemd[1]: httpd.service failed.
[root@rocks-7 ~]#