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

Php 编写器警告:缺少openssl扩展。如何在Denwer中启用,php,yii2,composer-php,Php,Yii2,Composer Php,我尝试安装Composer,但它返回错误:缺少openssl扩展。推荐的选项是在php.ini中启用扩展。 在php.ini中,字符串“extension=php_openssl.dll”未被注释掉。 我使用Denwer。 如何解决我的问题?根据这个问题:WAMP(如Denwer)对Apache和CLI使用不同的php.ini(在终端中运行的php,如composer) 只要我能看到Denwer中的php.ini文件位于“C:\WebServers\usr\local\php5\php.ini”

我尝试安装Composer,但它返回错误:缺少openssl扩展。推荐的选项是在php.ini中启用扩展。 在php.ini中,字符串“extension=php_openssl.dll”未被注释掉。 我使用Denwer。
如何解决我的问题?

根据这个问题:WAMP(如Denwer)对Apache和CLI使用不同的php.ini(在终端中运行的php,如composer

只要我能看到Denwer中的php.ini文件位于“C:\WebServers\usr\local\php5\php.ini”中,并且默认情况下注释了行“extension=php_openssl.dll”(;),即使取消注释,php也不会加载openssl

在这个网站上:(俄语)他们提出了一种让Openssl在Denwer上运行的方法。根据评论中的反馈,这个技巧有效


我希望这能帮助你

Denwer已经过时了。使用XAMPP、WampServer、Open Server等,并。。。ru.stackoverflow.com。