首页 > 代码库 > 启动httpd服务:SSLCertificateFile: file '/var/www/miq/vmdb/certs/server.cer' does not exist or is empty

启动httpd服务:SSLCertificateFile: file '/var/www/miq/vmdb/certs/server.cer' does not exist or is empty

启动httpd服务,失败:

[root@test vmdb]# service httpd restartStopping httpd:                                            [FAILED]Starting httpd: Syntax error on line 17 of /etc/httpd/conf.d/cfme-https-application.conf:SSLCertificateFile: file /var/www/miq/vmdb/certs/server.cer does not exist or is empty                                                           [FAILED]

网上搜了下,说与selinux相关,想到之前设置samba服务,开机自启动,并允许外部访问,曾经修改过selinux配置。

然后关闭selinux:

setenforce 0

再启动httpd服务:

service httpd start

启动成功!

 

参考资料:https://www.centos.org/forums/viewtopic.php?t=28657

启动httpd服务:SSLCertificateFile: file '/var/www/miq/vmdb/certs/server.cer' does not exist or is empty