How to enable XAMPP SSL socket transport

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.

80 thoughts on “How to enable XAMPP SSL socket transport”

  1. 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. Wonderful ! I love when things work the first time. Now I can mess around with the Google data API. Finally !

    Thank you ! ! !

  3. 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!

  4. 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..

    1. Im having this same problem

      I dont have a php.ini in the apache bin, mines in c:\xampp\php\

      when I open that php.ini there is no line for “;extension=php_openssl.dll”

      any ideas???

    2. My php.ini did not have the line:

      ;extension=php_openssl.dll

      however after copying the .DLL files as per these instructions, I simply just added the line:

      extension=php_openssl.dll

      near the rest of the “Dynamic Extensions”
      (example: extension=php_bz2.dll / extension=php_curl.dll.

      Worked Like a charm! Thanks to OP

  5. 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.

  6. Pingback: Koeriers Friesland
  7. 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.

  8. 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.

  9. 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

  10. 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

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

    now solved.
    thankyou verymuch

  12. 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

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>