编写器警告:缺少openssl扩展名。如何在Denwer中启用

时间:2016-07-26 22:13:02

标签: php yii2 composer-php

我尝试安装Composer并返回错误:缺少openssl扩展名。建议的选项是在php.ini中启用扩展名。 在php.ini字符串中,“ extension = php_openssl.dll ”未被注释掉。 我用Denwer。 我怎样才能解决我的问题?

1 个答案:

答案 0 :(得分:1)

根据这个问题:Composer Warning: openssl extension is missing. How to enable in WAMP WAMP(和Denwer一样)使用不同的php.ini用于Apache和CLI(在终端中运行的PHP,如 composer )。

我可以看到Denwer中的php.ini文件位于“C:\ WebServers \ usr \ local \ php5 \ php.ini”中,默认行“extension = php_openssl.dll”被注释(;) ,甚至取消注释它PHP不会加载OpenSSL。

在这个网站:http://hardmandev.com/article/nastroyka-openssl-dlya-denwer/(俄语),他们建议一种方法让Openssl在Denwer上运行。根据评论中的反馈,这个技巧有效。

我希望这可以帮到你。

相关问题