当出现如下报错时,是由于系统缺少mod_ssl模块导致,安装对应默认即可。
Error when trying to install SSL certificates in Apache: [root@host conf.d]# service httpd configtest httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/ssl.conf: Cannot load /etc/httpd/modules/mod_ssl.so into server: /etc/httpd/modules/mod_ssl.so: cannot open shared object file: No such file or directory
Installing mod_ssl for Apache on CentOS:
-
yum install mod_ssl
-
service httpd configtest
-
service httpd reload