Home | Syndication | Delicious | Douban | Twitter

Enable OpenSSL Support for PHP on Windows

As a prerequisite, two libraries must be existing in your Windows system: libeay32.dll and ssleay32.dll. Two ways to achieve this:

  • Install OpenSSL for Windows
  • Or, copy these two files to C:\WINDOWS\system32 folder. They're shipped with PHP package, you can find them in PHP root folder.

OK, it's time to open php.ini by using any text editor, and remove the semicolon before the following line:

extension=php_openssl.dll

Done!

This entry was posted on Wednesday, March 11th, 2009 at 16:16 and is filed under TechNotes. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

4 Responses to “Enable OpenSSL Support for PHP on Windows”

  • Ravi Says at 14:52, March 25, 2009

    Hi

    I m trying to access picasa from my site by using zend frame work
    I did the same what you mention above

    but still i am getting the following error. please have a look

    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?’ in C:\xampp\htdocs\zend\library\Zend\Gdata\AuthSub.php:121 Stack trace: #0 C:\xampp\htdocs\zend\public\Gdata\Photos.php(424): Zend_Gdata_AuthSub::getAuthSubSessionToken('CNHF2rCjCBDYk7_…') #1 C:\xampp\htdocs\zend\public\Gdata\Photos.php(443): getAuthSubHttpClient() #2 C:\xampp\htdocs\zend\public\Gdata\Photos.php(909): processPageLoad() #3 {main} thrown in C:\xampp\htdocs\zend\library\Zend\Gdata\AuthSub.php on line 121

  • richard Says at 16:23, March 25, 2009

    Did you verify that OpenSSL has been enabled in PHP correctly? Double check it, and try phpinfo() to see what's output of your PHP environments.

  • tom Says at 4:28, April 16, 2009

    I didn't do anything with the two files: libeay32.dll and ssleay32.dll.

    I might have had them already in the appropriate directory, but I doubt it and can't be bothered to check.

    I did however copy into C:\Program Files\PHP\ext\ the file php_openssl.dll from the php-5.2.9-1-Win32.zip archive I had previously downloaded.

    Added extension=php_openssl.dll to php.ini

    Restarted apache (might not have needed to) and it was then working, with open ssl showing in phpinfo()

  • ernest Says at 0:33, April 21, 2009

    whot does that mean

    Error while executing fopen sending method!
    Please check does PHP have OpenSSL support and check does PHP version is greater than 4.3.0.

Leave a Reply