PHP-FPM Crashes with cURL and HTTPS

on: 5/25/2015, .(JavaScript must be enabled to view this email address) about this entry

Quick tip if you’re running OS X Yosemite with homebrew PHP-FPM and end up with segfaults when you use curl in PHP for HTTPS web addresses. What’s happening is that cURL is using Apple’s SecureTransport, and the target URL has disabled SSLv3 probably due to the POODLE vulnerability. The solution is to install cURL with homebrew with OpenSSL support, and then compile PHP to use homebrew cURL and OpenSSL

brew install curl --with-openssl
brew reinstall php56 
--with-imap --without-apache --with-debug --with-homebrew-curl --with-homebrew-openssl