configuration - 如何将作曲家添加到 winginx?
问题描述
如何在 Windows 10 上将作曲家添加到 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
解决方案
转到 php71 的目录打开 php.ini 查找 extension=php_zip.dll 并将其更改为
;extension=php_zip.dll
推荐阅读
- yii - 使用上传的文件更新 yii 表单记录,如果我不再次附加文件,则会引发错误
- python - Django Admin 中 StackedInlineAdmin 模型的字符串表示
- powershell - Docker 无法访问主机上除 80 端口以外的端口
- redis - 有没有办法让redis键值随着时间的推移减少1?
- delphi - 如何使用 Delphi 对加载了 chromium (CEF4) 的完整文档进行截图?
- android - 我可以让用户以编程方式切换当前的 WiFi 连接吗?
- common-table-expression - 无法从函数评估不受支持的子查询类型
- python - 再次使用该值作为索引以避免局部变量时,列表交换两个元素失败
- javascript - 在保持状态的同时在 React 中切换布局
- codenameone - Codename One 类的 Objective-C 编码风格