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.dlland delete the semicolon
- Open Loaded Configuration File C:\xampp\php\php.ini and add this code
extension=php_openssl.dllin the extension section.