mod_ssl.so cannot open shared object file No such file or directory

当出现如下报错时,是由于系统缺少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:
  1. yum install mod_ssl
  2. service httpd configtest
  3. service httpd reload

发表评论