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
xampp\php\ folder, and copy it into
xampp\apache\bin\ folder. Just overwrite the older files in there.
php.ini file in
xampp\apache\bin, remove the semicolon in “
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.
58 Replies to “How to enable XAMPP SSL socket transport”
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
thanks a lott!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Do you know how to do this same thing for xampp on linuxz??
Sorry I don’t know, I never try this on linux.
thanks a lot man…i never would’ve figured that out
Man , on step 3 i’m use php.ini file ini c:\xampp\php\.
It works … thanks for help
Thanks, its working…..
Wonderful ! I love when things work the first time. Now I can mess around with the Google data API. Finally !
Thank you ! ! !
Thanks a lot man, Your code works .Now I enjoy it
It works.thanks a lot
Thank you so much! It draws like a pencil!
Hi , I tried this but not working for me
Can you please help me where I am wrong ?
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.
it is work in my XAMPP, thanx…
there is no line pertaining to
“;extension=php_openssl.dll” for php.ini in XAMPP 1.7.3..
How can I fix this problem?
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”
Search for “wxtension=php_”
at the end of the list, add “extension=php_openssl.dll”
obviously that was meant to say
Ever find a solution for this? Thanks!
same problem here. Anyone please help ..
My php.ini did not have the line:
however after copying the .DLL files as per these instructions, I simply just added the line:
near the rest of the “Dynamic Extensions”
(example: extension=php_bz2.dll / extension=php_curl.dll.
Worked Like a charm! Thanks to OP
“Now I can mess around with the Google data API.”
You can see more about that?
thanks, it worked.
IT works absolutely fine…. Should try this.. with little modification for non exampp user!!!!
I added the following line to php.ini and I didn’t have to copy any files:
And it worked.
Nicely done, now my email was sent!
This was driving me insane! Thank you so much for the help.
Juhan is right.
You only have to set the extension.
I have a problem its getting “Authentication with Google failed. Reason: BadAuthentication”
Wonderful, thanks a lot
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.
I had great difficulty determining the ssl socket in xampp, but eventually succeeded as well, thank you guidance.
you my friend saved my life, thank you sooooooo much.
Thanks it works!
wow..thanks, it worked! thumbs up, 🙂
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.
Thanks a ton man you are a genius !!!
Hi …i don’t have php.ini in my bin folder .. so now what to do
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.
THANKS! it also works in WAMP. 🙂
Thank you its very helpful to me..
You have no idea how much you’ve helped, Thanks a lot!
Thanks alot 4 dis….
just insert “extension=php_openssl.dll”
it’s works great, thanks a lot ))))
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
Yes Thanks alot dude it worked thanks alot
you are just looking like god to me. Thank you man.
Thanks! Worked with CodeIgniter.
thanks it works for me but php.ini in php forder
thanks a lot man.. 🙂
i don’t find in my php.ini file…
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
Thanks!! Worked with Symfony2
Sir, thanks for the information. I came across this error first when i tried to use Gdata for youtube integration.
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.