June 22, 2009

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

Last week while implementing google docs API i got this error "Unable to find the socket transport “ssl” - did you forget to enable it when you configured PHP?". I searched for the solution and fixed at last.

Here is the solution to the above problem,

uncommented the line in php.ini
;extension=php_openssl.dll

Other related blog post

http://www.boringguys.com/2007/07/20/unable-to-find-the-socket-transport-ssl-did-you-forget-to-enable-it-when-you-configured-php/

"Ran into this error recently… here’s how to fix it, you have to install OpenSSL on your system. For OpenSSL your PHP config values look like this:

–with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.6)

So, if you’ve compiled from scratch, you can just recompile adding this flag to your configure command."