You must enable the openssl extension to download files via https

前端 未结 13 1952
无人及你
无人及你 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:24

    Verify you are editing the correct php.ini file.

    Reference: https://github.com/composer/composer/issues/1440

    "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-X.Y.Z\php.ini to enable it for the CLI."

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

    make sure you have correct path to extension folder

    extension_dir = "ext"

    by default it is commented with ; character

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

    I have faced this problem, but configuging openssl (also for cli) did not help.

    I have updated composer and this sloved my problem.

    Just type:

    $ php composer.phar self-update
    

    or

    $ composer selfupdate
    

    Good luck!

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

    Uttam, if your issue is not solved then try the follwoing 3 step approach. It worked for me as I had exactly same issue.

    step1: click on wamp tray icon.

    step2: goto menu apache->apache modules

    step3: click on menu item "ssl_module"

    it will automatically restart wamp. if wamp not restarted automatically then restart it through wamp tray menu-> Restart All services. After restart confirm that "ssl_module" coming as ticked under menu apache->apache modules

    after that just attempt the php composer.phar install from going through the response shared by you, php.ini file contains extension=php_openssl.dll and the php/ext directory also have file "php_openssl.dll"

    good luck

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

    Becareful if you are using wamp don't use the wamp ui to enable the extension=php_openssl.dll

    just go to your php directory , for example : C:\wamp\bin\php\php5.4.12 and edit the php.ini and uncomment the extension=php_openssl.dll.

    it should work.

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

    Make sure that you update your php.ini for CLI. For my case this was C:\wamp\bin\php\php5.4.3\php.ini and uncomment extension=php_openssl.dll line.

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