Composer警告:缺少openssl扩展名。如何在WAMP中启用 [英] Composer Warning: openssl extension is missing. How to enable in WAMP

查看:633
本文介绍了Composer警告:缺少openssl扩展名。如何在WAMP中启用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过 Win7 / 64 + WampServer 2.2 上安装 Composer 依赖项管理工具http://getcomposer.org/download/\">设置安装程序,我收到以下消息:


openssl扩展名缺失,这将降低Composer的安全性和稳定性。
如果可能,你应该启用它或用--with-openssl重新编译php



  1. 从Tray中的Wamp图标,单击 php& php extensions> php_openssl

  2. 这表明任务是通过在扩展名旁边插入复选标记来完成的

  3. 然后我重新启动WampServer

  4. 然后从托盘中的Wamp图标,我点击了 php> php.ini 并搜索openssl到verifiy它没有评论)。

  5. 然后我回到Composer-Setup.exe并再次尝试。 相同的警告讯息:openssl扩展程序丢失

  6. 使用OpenSSL时始终不会设置,所以我试图使用https浏览到我的一个本地网站。



    请指教。

  7. / p>

    解决方案

    WAMP在CLI和Apache中使用不同的php.ini文件。当通过WAMP UI启用php_openssl时,您为Apache启用它,而不是为CLI启用它。
    您需要修改C:\wamp\bin\php\php-5.4.3\ php.ini才能为CLI启用它。


    Trying to install Composer dependency management tool on Win7/64 + WampServer 2.2 via the Setup Installer and I am getting the following message:

    The openssl extension is missing, which will reduce the security and stability of Composer. If possible you should enable it or recompile php with --with-openssl

    So here is what I did...

    1. From my Wamp icon in Tray, clicked php > php extensions > php_openssl
    2. This showed that task was completed by placing a check mark beside the extension
    3. I then restarted WampServer
    4. Then from the Wamp icon in tray, I clicked php > php.ini and searched for openssl to verifiy it was NOT commented) out. It was not.
    5. I then went back to Composer-Setup.exe and tried again. Same Warning Message: "openssl extension is missing"
    6. Having never worked with OpenSSL, I'm not sure what is supposed to be set, so I tried to browse to one of my local sites using https. It Failed.

    What am I missing?

    Please advise.

    解决方案

    WAMP uses different php.ini files in the CLI and for Apache. when you enable php_openssl through the WAMP UI, you enable it for Apache, not for the CLI. You need to modify C:\wamp\bin\php\php-5.4.3\php.ini to enable it for the CLI.

    这篇关于Composer警告:缺少openssl扩展名。如何在WAMP中启用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆