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:\wamp\bin\php\php5.4.16\php.exe
Add to System path variable:
C:\ProgramData\ComposerSetup\bin
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:
How solve this problem, please help me.
I figured it out and successfully installed Composer in My windows 10 PC.
I am sharing two solutions here.
There are some steps you have to follow in order to solve your problem.
1st solution.
php.ini
located in your "php" folder In my case it is in xampp the file is in c:\xampp\php\
"extension=php_openssl.dll"
";extension=php_openssl.dll"
uncomment by removing the semicolon ";"
2nd solution(If the above solution not work for you then go with below solution . )
This works in my case
php.ini
located in your "php" folder In my case it is in xampp the file is in c:\xampp\php\
php
in shell and hit enterThen you have to fix these waring message by commenting all these extension in your php.ini
file.(Actually cause of these warning messages are because more than one time these extensions are enabled but you can un-comment it in php.ini
file for solving the issue).
For Example which is in my case.
a). You can see in above image there is warning message for curl.
Module 'curl' already loaded in Unknown on line 0 .
b) To fix this find php_curl.dll
file in your php.ini
file and comment that extension by adding semicolon ";"
in front of that extension like this ;extension=php_curl.dll
Hope I can solve your issue .
That's all folks . Happy coding !!! (amitamie.com) :-) ;-)
I have battled this several times. And this is the best solution I have found.
As mentioned, you need to ensure that extension=php_openssl.dll
is enabled but doing just that sometimes may not resolve the error.
You should check that you have PHP on your path variable then see what INI file is loaded by typing php --ini
in the console it should give you something like:
Configuration File (php.ini) Path: C:\WINDOWS
Loaded Configuration File: C:\WINDOWS\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
Make sure you are enabling the settings in the correct ini file. If you dont have an ini file loaded put an ini file from the php directory into c:\windows
.
Also important
I find it helps to change the extension_dir
flag to an absolute path from relative to makesure the system can find php_opensll.dll
.
To do this uncomment the line starting extension_dir
and change it to match from the drive root.
Example: C:\php\ext
instead of ext/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With