You must enable the openssl extension to download files via https

前端 未结 13 1950
无人及你
无人及你 2020-11-28 02:38

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



        
相关标签:
13条回答
  • 2020-11-28 03:13

    I use XAMPP. In C:\xampp\php\php.ini, the entry for openssl did not exist, so I added "extension=php_openssl.dll" on line 989, and composer worked.

    0 讨论(0)
  • 2020-11-28 03:13

    I had to uncomment extension=openssl in php.ini file for everything to work!

    0 讨论(0)
  • 2020-11-28 03:14

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

    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.

    0 讨论(0)
  • 2020-11-28 03:16

    You need to enable "extension=php_openssl.dll" in both files (php and apache). my pc files path are these :

    1. C:\wamp\bin\php\php5.3.13\php.ini

    2. C:\wamp\bin\apache\apache2.2.22\bin\php.ini

    0 讨论(0)
  • 2020-11-28 03:16

    The Valery's answer helped me: https://stackoverflow.com/a/14265815/492457

    WAMP uses different php.ini files in the CLI and for Apache. when you enable php_openssl through the WAMP UI, you enable it for Apache, not for the CLI. You need to modify C:\wamp\bin\php\php-5.4.3\php.ini to enable it for the CLI.

    0 讨论(0)
  • 2020-11-28 03:23

    Late answer but adding so other can learn the reason.

    You also need to edit the php.ini file in the "wamp\bin\php\php-X.Y.Z" location.

    0 讨论(0)
提交回复
热议问题