简体   繁体   中英

How to include ssl_module to Apache 2.4?

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?

Just execute

yum install mod_ssl

to install the module if not present

Can you verify that the file /etc/httpd/modules/mod_ssl.so exists by

ls -l /etc/httpd/modules/mod_ssl.so

and 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM