我今天在Windows 7计算机上安装了最新的WAMP(来自wampserver.com)。
我已在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.
答案 0 :(得分:37)
php.ini的路径[如果你想要它用于作曲家]是C:\ wamp \ bin \ php \ php5.4.x \ php.ini。此文件与您在Wamp托盘图标
中导航时的文件不同去那里删除分号,如@ milesstewart88所说
答案 1 :(得分:23)
在php.ini文件中取消注释openssl扩展名。
EG。 ; extension = php_openssl.dll
删除分号,就像这样。
延长= php_openssl.dll
那应该有用;它对我有用。
答案 2 :(得分:23)
Wampserver with apache 2.4.4发布了错误的openssl文件。所有要做的事情是:从这里下载并安装1.0.1e openssl:http://slproweb.com/products/Win32OpenSSL.html
然后在已安装的目录中找到这些文件:
仓\ openssl.cfg
仓\的libeay32.dll
仓\ ssleay32.dll
仓\ openssl.exe
停止apache服务器。 首先,保存它们的BACKUP。然后在apache目录中覆盖这些文件:
conf \ openssl.cnf->在此重命名cfg
仓\的libeay32.dll
仓\ ssleay32.dll
仓\ openssl.exe
重启服务器。解决。
答案 3 :(得分:4)
在 Wampserver 上使用 Apache 2.4.4 ,这对我有用:
假设您已经使用SSL密钥和证书创建了一个目录,例如:c:/wamp/OpenSSL
取消注释 httpd.conf :
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule ssl_module modules/mod_ssl.so
# Secure (SSL/TLS) connections
<IfModule ssl_module>
Include conf/extra/httpd-ssl.conf
</IfModule>
编辑 httpd-ssl.conf :
SSLSessionCache "shmcb:c:/wamp/OpenSSL/logs/ssl_scache(512000)"
<VirtualHost _default_:443>
DocumentRoot "c:/wamp/www"
ServerName localhost:443
ErrorLog "c:/wamp/logs/error.log"
TransferLog "c:/wamp/logs/access.log"
SSLCertificateFile "c:/wamp/OpenSSL/certs/server.crt"
SSLCertificateKeyFile "c:/wamp/OpenSSL/certs/server.key"
<Directory "c:/wamp/www">
SSLOptions +StdEnvVars
</Directory>
CustomLog "c:/wamp/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
取消注释 php.ini :extension=php_openssl.dll
答案 4 :(得分:1)
请参阅我如何管理这个..
uncomment below line from <WEBroot>/bin/apache/Apache2.x/conf/httpd.conf
LoadModule ssl_module modules/mod_ssl.so
&
Include conf/extra/httpd-ssl.conf
放置证书&amp;单独文件夹上的键说“wwwssl”
AND GOT TO <WEBroot>/bin/apache/Apache2.x/conf/extra/httpd-ssl.conf
为所需服务器创建虚拟主机,请参阅:例如:
<VirtualHost _default_:443>
DocumentRoot "<WEBroot>/www/"
ServerName localhost
SSLEngine on
SSLCertificateFile "<WEBroot>/wwwssl/webserver.cert"
SSLCertificateKeyFile "<WEBroot>/wwwssl/webserver.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
</VirtualHost>
答案 5 :(得分:1)
就像milesstewart88所说 - 在php.ini文件中解开line extension = php_openssl.dll。
从wamp菜单中执行此操作无法正常工作 - 这可能会导致真正的问题。