As in my centos 7 httpd.conf
,I include ssl_module
as LoadModule ssl_module modules/mod_ssl.so
.
But I get error as below:
httpd: Syntax error on line 71 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_ssl.so into server: /etc/httpd/modules/mod_ssl.so: cannot open shared object file: No such file or directory
Then I run yum install openssl
,I got Package 1:openssl-1.0.2k-12.el7.x86_64 already installed and latest version Nothing to do.
Then I run whereis openssl
, I got
openssl: /usr/bin/openssl /usr/lib64/openssl /usr/share/man/man1/openssl.1ssl.gz
How to include ssl_module to Apache 2.4?
3
Answers
Can you verify that the file
/etc/httpd/modules/mod_ssl.so
exists byand put the result by editing your question.
Plus, if your httpd process is running under the apache user (or other non-root user), verify that the
/etc/httpd
directory, and all its files and sub-directories, has the proper rights.Did you read the documentation of your OperatingSystem?
The configuration for mod_ssl is in
/etc/httpd/conf.d/ssl.conf
Just execute
to install the module if not present