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

phpinfo

Having trouble with SSL in XAMPP with error notification as below?

Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://www.my.site.com:443 (Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP?)

While chechking the phpinfo() you will find the line says OpenSSL support => disabled (install ext/openssl).

Enabling the socket transport

Here is how to solve it in Windows enviroment:

  • Enable the Apache server and look for phpinfo in your localhost http://localhost/xampp/phpinfo.php
  • Open Configuration File (php.ini) Path C:\WINDOWS, find ;extension=php_openssl.dll and delete the semicolon
  • Open Loaded Configuration File C:\xampp\php\php.ini and add this code extension=php_openssl.dll in the extension section.

6 comments on “Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP?

  1. Having this problem with XAMPP. Just need to delete semicolon in C:\xampp\php\php.ini and save. No need to restart server.

    It solved my problem. Thanks for the guide.

  2. I uses WAMP and it doesn’t work for me.
    I solved this issue by another way:
    I have installed 2 Apach 2.2.1 and 2.2.2
    This ssl error was caused by Apach 2.2.1 and php 5.3.13 in one configuration.
    I switched to 2.2.2 and it works=)

Create Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>