skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. Did you read the documentation of your OperatingSystem?

    The configuration for mod_ssl is in /etc/httpd/conf.d/ssl.conf

    Login or Signup to reply.
  3. Just execute

    yum install mod_ssl
    

    to install the module if not present

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search