在 XAMPP 中启用 OpenSSL
我花了三个小时,但没有找到任何东西;我无法连接到启用 SSL 的服务器.我想列出我所做的:
I spent three hours but I did not find anything; I'm unable to connect to a SSL enabled server. I want to list what i did:
首先检查我的 PHP 扩展目录是否正常;扩展名不存在,php_openssl.dll
First checked my PHP extensions directory was in order; extension wasn't there, php_openssl.dll
然后我打开了我的 php.ini 文件,但我看不到任何要取消注释的 extension=php_openssl.dll 行.
Then I opened my php.ini file but I could not see any extension=php_openssl.dll line to uncomment.
另外,我在谷歌上搜索,看到有同样问题的人.http://www.apachefriends.org/f/viewtopic.php?p=162623
Also, I searched on Google and saw people with the same problem. http://www.apachefriends.org/f/viewtopic.php?p=162623
不过,我也有
OPENSSL_CONF C:/xampp/apache/bin/openssl.cnf
...
openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 0.9.8l 5 Nov 2009
OpenSSL Header Version OpenSSL 0.9.8l 5 Nov 2009
没有线.我该怎么办?请分享您的建议.
no lines . What should I do? Please share your suggestions.
是的,您必须打开 php.ini
并删除分号:
Yes, you must open php.ini
and remove the semicolon to:
;extension=php_openssl.dll
如果您没有该行,请检查您是否有该文件(在我的 PC 上位于 D:xamppphpext
)并将其添加到 php.ini
在动态扩展"部分:
If you don't have that line, check that you have the file (In my PC is on D:xamppphpext
) and add this to php.ini
in the "Dynamic Extensions" section:
extension=php_openssl.dll