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

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

    If you're doing this on Windows without one of the WAMP stacks, here's how to get this going

    1. Download an installation of PHP for Windows. Generally you'll want a non-thread safe install. You can use 32-bit or 64-bit builds
    2. Extract the zip file somewhere. I would suggest C:\php. Composer's installer found it there without any additional prompting
    3. The latest versions of PHP for Windows do not come with a php.ini by default. Instead, you'll see two files, as noted below. Rename one to php.ini or copy it into php.ini.
      • php.ini-development
      • php.ini-production
    4. Open your php.ini file and remove the semicolon from this line (you might want to uncomment other things as well but this line is the only one necessary for Composer)

      ;extension=php_openssl.dll
      

    That should be all you need to do. The Composer installer should do everything else you need from here.

提交回复
热议问题