问题描述
我花了三个小时,但没有找到任何东西.我无法连接到启用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.
此外,我在Google上进行了搜索,发现遇到同样问题的人. 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:\xampp\php\ext
),然后将其添加到动态扩展"部分的php.ini
中:
If you don't have that line, check that you have the file (In my PC is on D:\xampp\php\ext
) and add this to php.ini
in the "Dynamic Extensions" section:
extension=php_openssl.dll
这篇关于在XAMPP中启用OpenSSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!