在 XAMPP 中启用 OpenSSL [英] Enabling the OpenSSL in XAMPP

查看:50
本文介绍了在 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

这篇关于在 XAMPP 中启用 OpenSSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆