Cannot load modules/mod_ssl.so into server

Erfun picture Erfun · Oct 13, 2016 · Viewed 23.2k times · Source

I'm trying to set SSL to my localhost server with WAMP. (https://localhost)

I followed this Youtube course: https://www.youtube.com/watch?v=TH6evGKgy20

But finally, I got this error by running "httpd -t" command in Apache folder:

D:\Programs\wamp3\bin\apache\apache2.4.17\bin> httpd -t
httpd: Syntax error on line 173 of D:/Programs/wamp3/bin/apache/apache2.4.17/conf/h
ttpd.conf: Cannot load modules/mod_ssl.so into server: The operating system cannot
run %1.

What's the problem?

Answer

Erfun picture Erfun · Oct 14, 2016

The problem was OpenSSL version.

I was installed Win 32 version before, but I should install Win64 OpenSSL v1.0.2j Light (from here). Also, "Copy DLLs to Windows System directory" option must be checked in the installation wizard.

After installing it, everything worked correctly!