The OpenSSL extension is missing on Windows while installing Composer

32,582

@RiggsFolly has the right idea.

Additionally I had to:

  1. Copy php.ini-development to php.ini
  2. Uncomment the extension=php_openssl.dll line as described
  3. Uncomment this line: extension_dir = "ext"
  4. Make sure you find php_openssl.dll within that extension directory of course
Share:
32,582

Related videos on Youtube

user3660160
Author by

user3660160

Updated on September 18, 2022

Comments

  • user3660160
    user3660160 over 1 year

    While installing Composer for PHP, I get the following message:

    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

    How to fix this problem?

    • ganesh
      ganesh over 8 years
      You can fix this by recompiling php with the --with-opensll option.
    • ganesh
      ganesh over 8 years
      As to what it is. OpenSSL is the part responsive for TLS (think httpS). It is commonly used for secure communications. Originally thi sused something called SSL but those cypers have long since been cracked and these days we use TLS, but the name of the library is unchanged.
    • user3660160
      user3660160 over 8 years
      will try then i will tell you the result !
    • user3660160
      user3660160 over 8 years
      didn't worked for me !
  • user3660160
    user3660160 over 8 years
    THE SAME ERROR !! :(
  • RiggsFolly
    RiggsFolly over 8 years
    Are you sure you edited the correct php.ini? There are ususlly 2 you need the one in the php folder and not the one in the apache folder
  • dmeehan
    dmeehan almost 7 years
    I was missing Step 1. Thank you for pointing out something so obvious and simple
  • PhillipMcCubbin
    PhillipMcCubbin over 2 years
    Thank you, with a minor tweak: My php.ini was missing the dll section under "Module Settings". Instead, just uncomment "extension=openssl" (without .dll extension) under "Dynamic Extensions".