How to enable XAMPP SSL socket transport

July 26th, 2009 by leoganda Leave a reply »

Hi today I have an experiment with GData in Zend Framework PHP , and found an error that my XAMPP prevent SSL socket transport and return this error.

Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Unable to Connect to ssl://www.google.com:443. Error #24: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?'

Here’s the solution to make your XAMPP support socket transport SSL.
1. First stop your Apache service
2. Find libeay32.dll and ssleay32.dll in xampp\php\ folder, and copy it into  xampp\apache\bin\ folder. Just overwrite the older files in there.
3. Edit php.ini file in xampp\apache\bin, remove the semicolon in “;extension=php_openssl.dll
If you can’t find this line, just insert “extension=php_openssl.dll” in your php.ini
4. Start the Apache service

That’s it, your SSL transport socket in your XAMPP has been activated.

What people search:

61 comments

  1. William says:

    It works thank you so much! :) I needed this for enabling in-line-gdocs for a local installation of wordpress. It worked flawlessly!

    In php.ini the line to edit is 636

  2. Nandini says:

    Do you know how to do this same thing for xampp on linuxz??

  3. saxon says:

    thanks a lot man…i never would’ve figured that out

  4. DOny Chandra says:

    Man , on step 3 i’m use php.ini file ini c:\xampp\php\.

    It works … thanks for help

  5. Satisfied says:

    Wonderful ! I love when things work the first time. Now I can mess around with the Google data API. Finally !

    Thank you ! ! !

  6. ribes says:

    It works for XAMPP 1.6.8 and this code:http://www.okadadesign.no/blog/?p=410!

    Thanks a lot.

  7. Sanjib says:

    Thanks a lot man, Your code works .Now I enjoy it

  8. Rekha says:

    It works.thanks a lot

  9. LeProzak says:

    Thank you so much! It draws like a pencil!

  10. jamil says:

    Hi , I tried this but not working for me
    Can you please help me where I am wrong ?

    Thanks

  11. Rob Grant says:

    Thanks – that has solved my problem beautifully. Specifically I am developing a Joomla site on localhost and was getting the ssl error message when trying to import google calendars with the gCalendar extension. Now all seems to be working nicely. In case it is relevent to others I think the critical thing for me was uncommenting the extension=php_openssl.dll line in php.ini as the two copied files seemed already to be the correct versions.
    Much appreciated!

  12. henk says:

    it is work in my XAMPP, thanx…

  13. Elvin Catantan says:

    there is no line pertaining to
    “;extension=php_openssl.dll” for php.ini in XAMPP 1.7.3..
    How can I fix this problem?
    thanks..

  14. Fede says:

    Thanks Mate!!!

  15. cifira says:

    “Now I can mess around with the Google data API.”
    You can see more about that?

  16. Muqtada says:

    thanks, it worked.

  17. Varun says:

    IT works absolutely fine…. Should try this.. with little modification for non exampp user!!!!

  18. Juhan says:

    I added the following line to php.ini and I didn’t have to copy any files:

    extension=php_openssl.dll

    And it worked.

  19. Cate says:

    This was driving me insane! Thank you so much for the help.

  20. Z!oo!L says:

    Juhan is right.
    You only have to set the extension.

  21. itlashan says:

    Its worked,
    I have a problem its getting “Authentication with Google failed. Reason: BadAuthentication”

  22. Brice says:

    Wonderful, thanks a lot

  23. Kevin says:

    Hi. Thank you, all, for your help. I’ve followed above instructions, but when I attempt to restart Apache, I get the error: PHP Startup: Unable to load dynamic library ‘C:\xampp\php\ext\php_opensll.dll’ – The specified module could not be found. I read elsewhere that maybe I need a windows path, so I first added set PATH=%PATH%;c:\xampp\php. Didn’t work. So I added set PATH=%PATH%;c:\xampp\php\ext. Again, does not work. I still get the error message on startup.

  24. Jazirah says:

    I had great difficulty determining the ssl socket in xampp, but eventually succeeded as well, thank you guidance.

  25. muhsen says:

    you my friend saved my life, thank you sooooooo much.

  26. Jim Morrison says:

    Thanks it works!

  27. jhoiemarie says:

    wow..thanks, it worked! thumbs up, :)

  28. Deepak says:

    I tried what you have told in your code. But, it isn’t working. It is showing the same error. I am using Apache 1.7.7 and php 5.3.8. Please help me out.

  29. Steven says:

    Thanks a ton man you are a genius !!!

  30. sonika says:

    Hi …i don’t have php.ini in my bin folder .. so now what to do

  31. Pakmis says:

    I had trouble with my wordpress when I wanted to import my postings in blogger. It was said that the trouble in transport SSL. Then, I found this posting, next evrything goes OK. Thank so much.

  32. Japo says:

    THANKS! it also works in WAMP. :)

  33. Nishit Manvar says:

    Thank you its very helpful to me..

  34. Clint Sammut says:

    You have no idea how much you’ve helped, Thanks a lot!

  35. jes says:

    Thanks alot 4 dis….
    its working…
    :-)

  36. Oliver says:

    just insert “extension=php_openssl.dll”

    it’s works great, thanks a lot ))))

  37. Raj says:

    Great, except with XAMPP, in your last line, #3, it should read:

    3. Edit php.ini file in xampp\php, remove the semicolon in “;extension=php_openssl.dll”
    If you can’t find this line, just insert “extension=php_openssl.dll” in your php.ini

  38. Sab says:

    Yes Thanks alot dude it worked thanks alot

  39. suresh says:

    you are just looking like god to me. Thank you man.

  40. Omar says:

    Thanks! Worked with CodeIgniter.

  41. Tv says:

    thanks it works for me but php.ini in php forder

  42. lenin says:

    thanks a lot man.. :)

  43. vaibhav says:

    extension=php_openssl.dll
    i don’t find in my php.ini file…
    errors….
    failed to load external entity..
    failed to open stream: Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP? in C:\xampp\htdocs\test\xml_180.php on line 26
    tell me the solution

  44. Alvaro T. says:

    Thanks!! Worked with Symfony2

  45. Gaurav jha says:

    Sir, thanks for the information. I came across this error first when i tried to use Gdata for youtube integration.

    now solved.
    thankyou verymuch

  46. Yosba says:

    Greetings, I did that and it works perfect, but in my local computer, and now, in the server (apache debian linux) I need to know how to do the same. If anyone has managed to send with SSL on a linux server I need help.

Leave a Reply