Issues related to configuring your network
-
mahmood
- Posts: 122
- Joined: 2017/06/04 12:21:09
Post
by mahmood » 2018/01/07 15:53:32
When I want to start the httpd service, I get some errors which are shown as below
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 ~]#
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?
Last edited by
mahmood on 2018/01/07 16:15:14, edited 1 time in total.
-
avij
- Retired Moderator
- Posts: 3046
- Joined: 2010/12/01 19:25:52
- Location: Helsinki, Finland
-
Contact:
Post
by avij » 2018/01/07 16:10:21
As a first step, try commenting out that SSLCACertificateFile directive and see if it helps.
-
mahmood
- Posts: 122
- Joined: 2017/06/04 12:21:09
Post
by mahmood » 2018/01/07 16:16:27
Well I did that. It goes and complains about another file which is also empty
Code: Select all
Jan 07 11:15:43 rocks-7.scu.ac.ir systemd[1]: Starting The Apache HTTP Server...
Jan 07 11:15:43 rocks-7.scu.ac.ir httpd[6501]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf.d/411.conf:7
Jan 07 11:15:43 rocks-7.scu.ac.ir httpd[6501]: AH00526: Syntax error on line 100 of /etc/httpd/conf.d/ssl.conf:
Jan 07 11:15:43 rocks-7.scu.ac.ir httpd[6501]: SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
Jan 07 11:15:43 rocks-7.scu.ac.ir systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 07 11:15:43 rocks-7.scu.ac.ir kill[6503]: kill: cannot find process ""
Jan 07 11:15:43 rocks-7.scu.ac.ir systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 07 11:15:43 rocks-7.scu.ac.ir systemd[1]: Failed to start The Apache HTTP Server.
Jan 07 11:15:43 rocks-7.scu.ac.ir systemd[1]: Unit httpd.service entered failed state.
Jan 07 11:15:43 rocks-7.scu.ac.ir systemd[1]: httpd.service failed.
-
avij
- Retired Moderator
- Posts: 3046
- Joined: 2010/12/01 19:25:52
- Location: Helsinki, Finland
-
Contact:
Post
by avij » 2018/01/07 16:31:08
Are you trying to use https on your server? If not, comment out all those SSL directives that are causing problems.
-
mahmood
- Posts: 122
- Joined: 2017/06/04 12:21:09
Post
by mahmood » 2018/01/07 17:25:28
Is there a better way to disable https?
Grepping and commenting all ssl related thing is error prone. I don't know all features that have to be commented manually.
-
TrevorH
- Site Admin
- Posts: 33216
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Post
by TrevorH » 2018/01/07 17:43:25
yum remove mod_ssl
-
mahmood
- Posts: 122
- Joined: 2017/06/04 12:21:09
Post
by mahmood » 2018/01/07 17:54:43
Thank you.
In addition to that, I have to manually comment the SSL* in central.conf. No more change in other files is needed. Now the content looks like
Code: Select all
<Directory /var/www/html/install>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
Allow from all
</Directory>
# HTTPS access for serving kickstart files
<Directory /var/www/html/install/sbin>
AllowOverride None
#SSLRequireSSL
#SSLVerifyClient None
Allow from all
</Directory>
# allow all access to the rolls RPMS
<Directory /var/www/html/install/rolls>
DirectoryIndex /install/rolls/index.cgi
Allow from all
</Directory>
#SSLCACertificateFile /etc/httpd/conf/ssl.ca/ca-bundle