2012年9月21日 星期五

[RESOLVED] Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Unable to Connect to ssl://www.google.com:443

Today I tried to move the application to a new machine with XAMPP, the program returns the following fatal error.

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

The PHP program would connect to the Google Calendar by using Zend Framework, which requires SSL enabled in the PHP setting.

Steps to enable SSL socket in XAMPP

1. Go to XAMPP Control Panel and stop the Apache

2. Click the "Config" button under Apache and edit php.ini

3. Enable the OpenSSL by removing the ; at the beginning of the line

extension=php_openssl.dll





4. Save and restart Apache

沒有留言:

張貼留言