解决composer对openssl报错

使用composer发生如下错误。

[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.

解决方法:在php.ini文件中打开php_openssl扩展
extension=openssl.so

点击量:19

发表评论

电子邮件地址不会被公开。 必填项已用*标注