我已经通过scoop安装了PHP和Composer,但它失败了,错误是缺少SSL:
>scoop install php composer
...
>composer selfupdate
composer: 1.6.5 (latest version)
[Composer\Exception\NoSslException]
The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this
error, at your own risk, by setting the 'disable-tls' option to true.遗漏了什么?
发布于 2018-07-26 23:13:30
当通过Scoop安装OpenSSL时,默认情况下不启用。
要启用它,需要在现有的php.ini file中注释extension=openssl,或者可以在PHP的conf.d目录中创建新的.ini文件。
以下命令可以定位php.ini
php -i | grep -w ini那么下面的命令应该可以解决这个问题:
cd %HOMEPATH%\scoop\apps\php\current\cli\conf.d
echo extension=openssl >> openssl.ini可以分别为其他扩展名(如mbstring、mysqli等)创建类似的文件。
https://stackoverflow.com/questions/51542217
复制相似问题