gpt4 book ai didi

php - Composer 未安装在Windows 7中

转载 作者:可可西里 更新时间:2023-11-01 12:40:31 25 4
gpt4 key购买 nike

我已经在 php.ini 中取消注释:

[PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;

;extension=php_oci8_11g.dll
extension=php_openssl.dll
;extension=php_pdo_firebird.dll

系统变量设置正常。

PHP 版本 5.4.16:

  C:\wamp\bin\php\php5.4.16\php.exe

添加到系统路径变量:

  C:\ProgramData\ComposerSetup\bin

但是,收到这个错误:

Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The openssl extension is missing, which means that secure HTTPS transfers are
impossible. If possible you should enable it or recompile php with --with-openssl

我正在使用:

  • Windows 7
  • 旺旺
  • php 5.1.16
  • Apache 2.4.4

如何解决这个问题,请帮助我。

最佳答案

  1. 打开位于“php”文件夹中的 php.ini,例如在 xampp 中,文件位于 XYZ:\xampp\php\

  2. 找到 "extension=php_openssl.dll"

  3. ";extension=php_openssl.dll" - 移除 ";"

  4. 重新启动您的 xampp(或任何您使用的),之后应该加载扩展。

  5. 尝试 agien 安装 composer。

关于php - Composer 未安装在Windows 7中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22763452/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com