Decrease Font Size
Increase Font Size
   BLOG

function fsockopen unable to connect to ssl www sandbox

Background: I have two different version of Apache/PHP/MySQL running on two different servers.
On Server 1: Apache/2.2.11 , PHP Version 5.2.8
On Server 2: Apache/2.0.58 , PHP Version 5.1.4

We are integrating the Paypal payment system; Server 1 didn't complaint much but on the other hand Server 2 was rather challenging. It showed us the error Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://www.sandbox.paypal.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) .

Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://www.sandbox.paypal.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in


Solution: We found a bunch of good articles out there, but most of them failed to address to the user on how to “TURN ON THE OpenSSL”. Here is the link that will give us a brief tutorial on how to turn on the OpenSSL: http://www.jm-solutions.com/OpenSSL/Introduction/introduction.php.  The instructions are very straight forward.

Question: Do I need to Install or setup OpenSSL?
Answer: The chances are very high if you are using the version like I had on Server 2. Run the phpinfo();
check and see if you have something like tcp, udp, ssl, sslv3, sslv2, tls under Registered Stream Socket Transports.

Also, make sure you have extension=php_openssl.dll uncommented in php.ini
To check the location of your php.ini, run the phpinfo().

And the errors message should go away and is time to test the Paypal payment system. It worked for me, and I hope it work for everyone out there.

Comments (9) -

  • Stop Dreaming Start Action

    6/23/2009 10:23:00 PM |

    Can for configure wordpress?

  • bookkeeper

    10/22/2009 3:38:12 PM |

    Hi,


    Good post....thanks for sharing.. very useful for me i will bookmark this for my future needed. thanks for a great source.

  • asian love

    12/24/2009 5:45:39 PM |

    Hi,

    Useful info. Hope to see more good posts in the future.

  • anti virus software

    1/8/2010 10:38:59 PM |

    Sensational info. I look forward to seeing more

  • logo design

    1/14/2010 9:24:33 PM |

    Quite interesting! hope to have some more good stuff here!

  • traslochi internazionali milano

    1/30/2010 4:16:34 AM |

    Good post, but have you thought about function fsockopen unable to connect to ssl www sandbox paypalcom 443 Unable-to-find-the socket transport ssl did you forget-to enable it when you configured PHP before?

  • utah disaster cleanup

    2/2/2010 12:33:36 PM |

    Hi,


      Great blog post. It’s useful information.

  • canon ink

    2/8/2010 12:02:55 PM |

    Really appreciate this post. It’s hard to sort the good from the bad sometimes, but I think you’ve nailed it!

  • seo ngeblog

    2/25/2010 12:31:08 AM |

    This post cool. Really covers the insight of the problem. Laughing

Add comment

Loading