在WAMP中启用OpenSSL

dir*_*oys 12 openssl wampserver

我今天在Windows 7计算机上安装了最新的WAMP(来自wampserver.com).

我已经启用了SSL PHP > PHP Extensions > php_openssl

Apache > Apache Modules > open_ssl

但是当我尝试使用https://访问任何内容时,我会收到"问题加载页面".apache_error.log说

[Thu Jun 27 16:25:08.622056 2013] [ssl:warn] [pid 4812:tid 356] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1e 11 Feb 2013, version currently loaded is OpenSSL 1.0.1d 5 Feb 2013) - may result in undefined or erroneous behavior


[Thu Jun 27 16:25:08.973076 2013] [ssl:warn] [pid 4812:tid 356] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1e 11 Feb 2013, version currently loaded is OpenSSL 1.0.1d 5 Feb 2013) - may result in undefined or erroneous behavior


[Thu Jun 27 16:25:09.356098 2013] [ssl:warn] [pid 4812:tid 356] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]


[Thu Jun 27 16:25:09.365099 2013] [mpm_winnt:notice] [pid 4812:tid 356] AH00455: Apache/2.4.4 (Win64) OpenSSL/1.0.1d PHP/5.4.12 configured -- resuming normal operations

[Thu Jun 27 16:25:09.365099 2013] [mpm_winnt:notice] [pid 4812:tid 356] AH00456: Server built: Feb 22 2013 22:08:37

[Thu Jun 27 16:25:09.365099 2013] [core:notice] [pid 4812:tid 356] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'

[Thu Jun 27 16:25:09.366099 2013] [mpm_winnt:notice] [pid 4812:tid 356] AH00418: Parent: Created child process 3452

[Thu Jun 27 16:25:09.664116 2013] [ssl:warn] [pid 3452:tid 248] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1e 11 Feb 2013, version currently loaded is OpenSSL 1.0.1d 5 Feb 2013) - may result in undefined or erroneous behavior

[Thu Jun 27 16:25:09.954132 2013] [ssl:warn] [pid 3452:tid 248] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1e 11 Feb 2013, version currently loaded is OpenSSL 1.0.1d 5 Feb 2013) - may result in undefined or erroneous behavior

[Thu Jun 27 16:25:10.327154 2013] [ssl:warn] [pid 3452:tid 248] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]


[Thu Jun 27 16:25:10.339154 2013] [mpm_winnt:notice] [pid 3452:tid 248] AH00354: Child: Starting 150 worker threads.
Run Code Online (Sandbox Code Playgroud)

Geo*_* D. 37

路径为php.ini [如果你想,对于作曲家]是C:\ WAMP\BIN\PHP\php5.4.x\php.ini中.此文件与您在Wamp托盘图标中导航时所拥有的文件不同

去@ milesstewart88说,去那里删除分号

  • 如果您在使用Composer时遇到此问题,则可以采用此方法. (4认同)

小智 23

只需取消注释php.ini文件中的openssl扩展即可.

例如.;延长= php_openssl.dll

删除分号,就像这样.

延长= php_openssl.dll

那应该有用; 它对我有用.


gsz*_*szi 23

Wampserver与apache 2.4.4一起发布了错误的openssl文件.所有要做的事情是:从这里下载并安装1.0.1e openssl:http://slproweb.com/products/Win32OpenSSL.html

然后在已安装的目录中找到这些文件:

BIN\openssl.cfg

斌\的libeay32.dll

BIN\ssleay32.dll

BIN\openssl.exe

停止apache服务器.首先,保存它们的BACKUP.然后在apache目录中覆盖这些文件:

conf\openssl.cnf->在这里重命名cfg

斌\的libeay32.dll

BIN\ssleay32.dll

BIN\openssl.exe

重启服务器.解决了.

  • 我不知道如何或为什么但这只是现在让我的服务器崩溃. (2认同)