I have a dev VM running Ubuntu 11.10, and can't get PHP cUrl requests to work for SSL urls. No problem using cUrl for SSL or non-SSL urls over the CLI, or non-SSL urls through PHP cUrl. Only SSL urls via cUrl in PHP. When I attempt any SSL request, I get Chrome's Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
error.
I've been able to narrow down the problem: in the server error log I found the entry:
[Thu Feb 23 10:07:38 2012] [notice] child pid xxxx exit signal Segmentation fault (11)
corresponding to my attempted ssl curl requests. Searching around yielded the following bug pointing to OpenSSL: https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/590639 One apt-get upgrade openssl
later, and I'm on openSSL 1.0.0e. But I'm still having the same problem. I think I may be coming up against a lack of familiarity with the minutia of configuring Zend/Apache2.
Interestingly, looking in the Zend admin panel, I see:
curl
- cURL support: enabled
- cURL Information: libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3
but also:
openssl
- OpenSSL support: enabled
- OpenSSL Version: OpenSSL 0.9.8o 01 Jun 2010
Can anyone point me in the direction I need to look to get this straightened out? I'm a recovering Windows .aspx developer, so the answer might well be stoopid and obvious.
And yes, I did consider Server Fault first, but came back here since I think a fellow developer might be more likely to have had to troubleshoot this.