Composer installation error in Windows 10 Openssl extension missing

openssl is missing when you install composer

my windows: 10

local server: UwAmp

I activated openssl in:

C: \ UwAmp \ Bin \ Apache \ php.ini

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

Like from the UwAmp GUI

But

This problem is not resolved.

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

thanks

+6
source share
3 answers

I had a problem installing Composer with MAMP for Windows 10. My php.ini file was not in the same directory as php.exe . I assume that the composer does not know how to search elsewhere.

Try making a copy of your php.ini from C:\UwAmp\bin\apache\php.ini by pasting it into C:\UwAmp\bin\php\php-5.4.31 , and then try running Composer setup again. Make sure extension=php_openssl.dll not commented out with ; .

+1
source

Copy php.in from php dir to Apache24 / bin for me. Make sure you enable the extension.

+1
source

The composer has nothing to do with apache, so C:\UwAmp\bin\apache\php.ini does not matter.

php.ini-development and php.ini-production are examples to get you started. Therefore, you should select one (perhaps development ) and rename it to php.ini so that it really works.

0
source

All Articles