1

如何在 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
4

1 回答 1

0

转到 php71 的目录打开 php.ini 查找 extension=php_zip.dll 并将其更改为

;extension=php_zip.dll
于 2020-09-02T04:16:16.027 回答