How to enable PHP's openssl extension to install Composer?

后端 未结 18 1155
臣服心动
臣服心动 2020-11-27 12:29

I am trying to install Laravel in WAMP setup. I am getting a warning message for not enabling openssl which I had already done in WAMP.

Here is a sc

18条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 13:31

    This is an old question but I just had the same issue (with PHP7) and the solution was, in the end, pretty simple. Uncommenting the line in php.ini as per the other answers wasn't quite enough though. I needed to change it from:

    ;extension=php_openssl.dll
    

    to:

    extension=ext/php_openssl.dll
    

    Note the ext prefix. The dll already existed but was in a subfolder. After changing the config the composer installer was happy.

提交回复
热议问题