Composer The openssl extension is required for SSL/TLS protection
来源:互联网 发布:蔬菜网络采购平台 编辑:程序博客网 时间:2024/05/17 22:34
Composer 是 PHP5以上 的一个依赖管理工具。它允许你申明项目所依赖的代码库,它会在你的项目中为你安装他们。Composer 不是一个包管理器。是的,它涉及 "packages" 和 "libraries",但它在每个项目的基础上进行管理,在你项目的某个目录中(例如 vendor)进行安装。默认情况下它不会在全局安装任何东西。因此,这仅仅是一个依赖管理。
安装好Composer时通过composer install,发现没有正常安装,而是提示:
[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.
对于这个问题,我尝试使用下面的命令解决:
然而出现了另外的问题:[Composer\Downloader\TransportException]
Your configuration does not allow connections to http://packagist.org/packages.json. See https://getcomposer.org/doc/06-config.md#secure-http for details.
所以需要再次进行设置,禁用SSL
之后,一部分可以正常安装了,还有一部分提示超过300stimeout,所以对时间进行设置:
增加COMPOSER_PROCESS_TIMEOUT,通过命令composer config --list
看到默认是300s,然后通过命令composer config -g process-timeout 600
增加COMPOSER_PROCESS_TIMEOUT至600s。
至此,Composer能够正常运行。
================================================================
解决方法:composer config -g -- disable-tls true
或者开启php的ssl开启
=================================================
来源:http://www.rabbit8.cn/576.html
- Composer The openssl extension is required for SSL/TLS protection
- php composer.phar install error The openssl extension is required for SSL/TLS protection
- The krb5 extension is required for GSSAPI authentication)
- The PDO extension is required for this adapter but the extension is not loaded 错误解决方案
- The PDO extension is required for this adapter but the extension is not loaded解决方案:
- laravel遇到"openssl extension is required..."
- Composer: The openssl extension is missing, which means that secure HTTPS transfers are impossible.
- PHP composer-setup安装遇到的openssl extension is missing
- Zend:The PDO extension is required for this adapter but not loaded
- openssl 学习之SSL/TLS
- openssl 学习之SSL/TLS
- composer 更新报错:SSL/TLS
- Ignoring ensurepip failure:pip required SSL/TLS
- The attribute required is undefined for the annotation type XmlElementRef
- 用openssl编写SSL,TLS程序
- 用openssl编写SSL,TLS程序
- 用openssl编写SSL,TLS程序
- 用OpenSSL编写SSL,TLS程序
- Quartz定时器时间配置格式说明及案例
- 10分钟搞定Java带token验证的注册登录
- winform点击按钮弹出input对话框
- 周志华《机器学习》学习笔记1--绪论
- 在jsp中插入时间控件的使用方法
- Composer The openssl extension is required for SSL/TLS protection
- JAVA知识点总结
- linux删除文件后没有释放空间
- Xcode警告忽略
- MySQL-5.7.15-winx64配置log_bin
- codeforces 869E(哈希&二维树状数组)
- J2EE常用名词解释
- Android查询/设置Settings的值
- java基础知多少(一)