Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot load modules/mod_ssl.so into server

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?

like image 549
Erfun Avatar asked Oct 13 '16 09:10

Erfun


2 Answers

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!

like image 62
Erfun Avatar answered Oct 23 '22 03:10

Erfun


I'd a problem with running mod_ssl on simply oldest Apache/2.4.41 version on Windows Server 2016, witch perfect works on Windows 10 Pro. Fix solution for WS2016 consist in updating to the new Apache/2.4.43 or copying mod_ssl.so from Apache/2.4.43 to Apache/2.4.41 modules.

Note: that Update httpd 2.4.41 with OpenSSL 1.1.1.e! Make sure the run time variable OPENSSL_CONF is set. Be sure you installed latest Visual C++ Redistributable for Visual Studio 2015-2019

like image 25
Alex Deroza Avatar answered Oct 23 '22 03:10

Alex Deroza