windows 无法将模块/mod_ssl.so 加载到服务器中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40017498/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot load modules/mod_ssl.so into server
提问by Erfun
I'm trying to set SSL to my localhost server with WAMP. (https://localhost)
我正在尝试使用 WAMP 将 SSL 设置为我的本地主机服务器。( https://localhost)
I followed this Youtube course: https://www.youtube.com/watch?v=TH6evGKgy20
我关注了这个 Youtube 课程:https: //www.youtube.com/watch?v=TH6evGKgy20
But finally, I got this error by running "httpd -t" command in Apache folder:
但最后,我通过在 Apache 文件夹中运行“httpd -t”命令得到了这个错误:
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?
有什么问题?
回答by Erfun
The problem was OpenSSL version.
问题是 OpenSSL 版本。
I installed Win 32 version before, but I should install Win64 OpenSSL v1.0.2j Light from here. (With checked "Copy DLLs to Windows System directory" option)
我之前安装了 Win 32 版本,但我应该从这里安装 Win64 OpenSSL v1.0.2j Light 。(选中“将 DLL 复制到 Windows 系统目录”选项)
After installing it, everything worked correctly!
安装后,一切正常!
回答by Alex Deroza
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.
我在 Windows Server 2016 上仅在最旧的 Apache/2.4.41 版本上运行 mod_ssl 时遇到问题,在 Windows 10 Pro 上完美运行。WS2016 的修复解决方案包括更新到新的 Apache/2.4.43 或将 mod_ssl.so 从 Apache/2.4.43 复制到 Apache/2.4.41 模块。
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
注意:使用 OpenSSL 1.1.1.e 更新 httpd 2.4.41!确保运行时间变量OPENSSL_CONF设置。确保您安装了最新的 Visual C++ Redistributable for Visual Studio 2015-2019