Unable to find the socket transport “ssl” - did you forget to enable it when you configured PHP?

后端 未结 4 1248
一整个雨季
一整个雨季 2020-11-30 11:28

I\'m googling for how to this error a lot of hours. I\'ve tried all solutions from this topic without luck. (the only difference I\'m usi

相关标签:
4条回答
  • 2020-11-30 11:31

    Check your php.ini file, on it, if you have this:

    ;extension=php_openssl.dll
    

    change it to

    extension=php_openssl.dll
    

    After that, remember to restart Apache, either using any control panel that Appserver offers, or using the services windows on the control panel of the system.

    Also be sure that php_openssl.dll is on a folder that the system can reach, many people use to solve the problem of dll location problems by copying them to C:\windows or C:\windows\system32. Although that shouldn't be necessary.

    After that, execute a file with phpinfo and check that it's enabled.

    I have read somewhere, can't pinpoint it, that some installation of that kind of wamps have more that one php.ini, but only one is really active, could it be that you have edited the wrong one?

    0 讨论(0)
  • 2020-11-30 11:33

    For some people, those solutions don't work.

    For me the solution was this: copy dll libeay32.dll and ssleay32.dll to the bin directory of the server - apache.

    The solution suggest in a comment in: http://php.net/manual/fa/openssl.installation.php

    When I look in the error log, I understood that the problem was in loading the dll's and putting them to the server directory was the only way.

    0 讨论(0)
  • 2020-11-30 11:36

    The proper answer is to replace the line

    ;extension=php_openssl.dll
    

    in the php.ini file with

    extension=php_openssl.dll
    

    If you cant find extension=php_openssl.dll in the php.ini file, then just simply append the following line to the file:

    extension=php_openssl.dll
    

    This should work!

    0 讨论(0)
  • 2020-11-30 11:45

    I had a similar error with ssl for hours.

    What worked for me was copying php\libeay32.dll, php\ssleay32.dll and php\ext\php_openssl.dll from the php directory to the Apache2.2\bin directory. Then restart apache.

    0 讨论(0)
提交回复
热议问题