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

您必须启用 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.