在配置Apache HTTPS时出现 module ssl_module is already loaded 解决方法
今天在给公司的服务器配置HTTPS

因为之前已经给apache设置好SSL了 所以还是老方法修改/etc/httpd/conf.d/ssl.conf文件

更新了以前写的旧证书信息, 然后保存重启

结果发现一直提示
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

无法开启Apache

用 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 Wed 2018-05-23 02:40:57 CST; 3min 5s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 14476 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 14474 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 14474 (code=exited, status=1/FAILURE)

May 23 02:40:57 iz2zegct6bthbgwqfrldpvz systemd[1]: Starting The Apache HTTP Server...
May 23 02:40:57 iz2zegct6bthbgwqfrldpvz httpd[14474]: [Wed May 23 02:40:57.908795 2018] [so:warn] [pid 14474] AH01574: module ssl_module is already loaded, skipping
May 23 02:40:57 iz2zegct6bthbgwqfrldpvz httpd[14474]: [Wed May 23 02:40:57.910169 2018] [so:warn] [pid 14474] AH01574: module php7_module is already loaded, skipping
May 23 02:40:57 iz2zegct6bthbgwqfrldpvz httpd[14474]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.95.196. Set the ...is message
May 23 02:40:57 iz2zegct6bthbgwqfrldpvz systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 23 02:40:57 iz2zegct6bthbgwqfrldpvz kill[14476]: kill: cannot find process ""
May 23 02:40:57 iz2zegct6bthbgwqfrldpvz systemd[1]: httpd.service: control process exited, code=exited status=1
May 23 02:40:57 iz2zegct6bthbgwqfrldpvz systemd[1]: Failed to start The Apache HTTP Server.
May 23 02:40:57 iz2zegct6bthbgwqfrldpvz systemd[1]: Unit httpd.service entered failed state.
May 23 02:40:57 iz2zegct6bthbgwqfrldpvz systemd[1]: httpd.service failed.

google了一下发现估计是因为编辑了ssl.conf 但重启apache并没有重启ssl模块 可以通过注释掉ssl.conf下的

LoadModule ssl_module modules/mod_ssl.so
Listen 443

我公司服务器是不包含 LoadModule ssl_module modules/mod_ssl.so 的 所以只注释掉了Listen 443
之后再启动服务器就可以打开了 接着去掉注释掉的内容 再重启就正常运行了
[/b]

        

评论
fff
游客 发表于:    2018/05/31      10:48:0     [2]
dddd
  

ddd
游客 发表于:    2018/06/01      15:29:40     [1]
nga观光团。
  

shen 发表于:    2018/06/06      0:6:58     [0]
- - 为什么会有nga的同好
  


    第一次在腾讯云上架设 .... Laravel中aj ....