作曲家未安装在 Windows 7 中

2022-01-21 00:00:00 windows php composer-php

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

I already uncommented in php.ini:

[PHP]

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

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

系统变量设置好.

PHP 版本 5.4.16:

PHP version 5.4.16:

  C:wampinphpphp5.4.16php.exe

添加到系统路径变量:

  C:ProgramDataComposerSetupin

但是,收到此错误:

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
  • 阿帕奇 2.4.4

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

How solve this problem, please help me.

推荐答案

  1. 打开位于php"文件夹中的 php.ini,例如在 xampp 中,该文件位于 XYZ:xamppphp

  1. Open php.ini located in your "php" folder for example in xampp the file is in XYZ:xamppphp

查找 "extension=php_openssl.dll"

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

重启你的xampp(或你使用的任何东西),之后应该加载扩展.

Restart your xampp (or whatever u use), extension should be loaded after that.

尝试 agien 安装 composer.

Try agien to install composer.

相关文章