Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
229 views
in Technique[技术] by (71.8m points)

php - composer not install in windows 7

I already uncommented in php.ini:

[PHP]

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

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

Variables of the system set ok.

PHP version 5.4.16:

  C:wampinphpphp5.4.16php.exe

Add to System path variable:

  C:ProgramDataComposerSetupin

But, recive this error:

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

I'm using:

  • windows 7
  • Wamp
  • php 5.1.16
  • apache 2.4.4

How solve this problem, please help me.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  1. Open php.ini located in your "php" folder for example in xampp the file is in XYZ:xamppphp

  2. Find "extension=php_openssl.dll"

  3. ";extension=php_openssl.dll" - remove ";"

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

  5. Try agien to install composer.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...