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

后端 未结 18 1158
臣服心动
臣服心动 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:06

    For WAMP server, comment given by "Enrique" solved my problem.

    wamp is using this php.ini:

    c:\wamp\bin\apache\Apache2.4.4\bin\php.ini
    

    But composer is using PHP from CLI, and hence it's reading this file:

    c:\wamp\bin\php\php5.4.12\php.ini (so you need to enable openssl there)
    

    For composer you will have to enable extension in

    c:\wamp\bin\php\php5.4.12\php.ini
    

    Change:

    ;extension=php_openssl.dll 
    

    to

    extension=php_openssl.dll
    

提交回复
热议问题