【问题标题】:How to add composer to winginx?如何将作曲家添加到 winginx?
【发布时间】:2019-04-27 02:04:24
【问题描述】:

如何在 Windows 10 上将 composer 添加到 winginx?当我尝试从 winginx php71 文件夹加载作曲家的安装时,它确实会抛出一个错误 PHP 警告:模块 'zip' 已经在第 0 行的未知中加载

我确实尝试将作曲家安装在 php71 文件夹中,但由于上述错误而失败,并且我无法编辑 zip.dll

php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"

c:\Winginx\php71>php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"

Warning: Module 'zip' already loaded in Unknown on line 0

Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Command line code on line 1

Warning: file_get_contents(https://getcomposer.org/installer): failed to open stream: No such file or directory in Command line code on line 1

【问题讨论】:

  • 我也有同样的问题...
  • 我刚刚找到答案

标签: configuration composer-php localhost winginx


【解决方案1】:

转到 php71 的目录 打开 php.ini 寻找extension=php_zip.dll 改成

;extension=php_zip.dll

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-10
    • 1970-01-01
    • 1970-01-01
    • 2022-08-19
    • 2015-05-29
    相关资源
    最近更新 更多