您必须启用 openssl 扩展才能通过 https 下载文件 [英] You must enable the openssl extension to download files via https

查看:33
本文介绍了您必须启用 openssl 扩展才能通过 https 下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装 Zend Framework 2.所以我下载了骨架应用程序.正如ZF2手册中提到的,我们必须发出命令

I wanted to install Zend Framework 2. So I downloaded the skeleton application. As mentioned in the ZF2 manual, we have to issue the command

php composer.phar install 

在骨架内部.

但是我收到一个错误

您必须启用 openssl 扩展才能通过 https 下载文件

You must enable the openssl extension to download files via https

然后我在我的 wamp 中启用了 ssl_module,我检查了 php_ini 文件,我可以看到以下行

Then I enabled the ssl_module in my wamp, I checked the php_ini file and I can see the following line

extension=php_openssl.dll

extension=php_openssl.dll

我仍然遇到同样的错误.有人知道我错过了什么吗?

Still I'm getting the same error. Anybody having any clue what I missed out?

推荐答案

PHP CLI SAPI 使用与 CGI 或 Apache 模块不同的 php.ini.

PHP CLI SAPI is using different php.ini than CGI or Apache module.

wamp/bin/php/php#.#.##/php.ini中找到;extension=php_openssl.dll行并通过删除行开头的分号 (;) 取消注释.

Find line ;extension=php_openssl.dll in wamp/bin/php/php#.#.##/php.ini and uncomment it by removing the semicolon (;) from the beginning of the line.

这篇关于您必须启用 openssl 扩展才能通过 https 下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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