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

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

    If you compiled from source, then adding extension=php_openssl.dll to the php.ini file may not work.

    To troubleshoot this, open a command prompt and type php -i. Scroll up to the first line, it will tell you the most recent error regarding your php.ini file.

    To solve the issue, find the php_openssl.dll file, for me it was in the very same directory of the compilation output: C:\php-sdk\bin\phpdev\vc14\x64\php-7.0.13-src\x64\Release_TS So just add the directory where the extension is, to the php.ini:

    extension_dir = "C:\php-sdk\bin\phpdev\vc14\x64\php-7.0.13-src\x64\Release_TS"
    

    Hopefully the error will be gone

提交回复
热议问题