Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install composer fails in windows 10 The openssl extension is missing

openssl missing whene install composer

my windows: 10

local server: UwAmp

I've activated openssl in :

C:\UwAmp\bin\apache\php.ini

C:\UwAmp\bin\php\php-5.4.31\php.ini-development & php.ini-production (2 files) by delete - ; -

As well as from UwAmp GUI

But

This problem is not solved

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

Thank you

like image 576
ZaFaR97 Avatar asked Aug 08 '15 06:08

ZaFaR97


2 Answers

I ran into the same issue installing Composer with MAMP for Windows 10. My php.ini file was not in the same directory as php.exe. I'm guessing Composer doesn't know to look elsewhere for the ini.

Try making a copy of your php.ini from C:\UwAmp\bin\apache\php.ini, pasting it into C:\UwAmp\bin\php\php-5.4.31, and then try to run the Composer setup again. Confirm that extension=php_openssl.dll is not commented out with a ;.

like image 190
Sean Fahey Avatar answered Oct 09 '22 21:10

Sean Fahey


Copy php.in from php dir to Apache24/bin works for me. Please make sure you enable the extension in there.

like image 23
Lan Nguyen Avatar answered Oct 09 '22 21:10

Lan Nguyen