Исключение Zend_Http_Client SSL
У меня есть проект Zend Framework 1.12, а на сервере Ubuntu 10.04 установлены PHP 5.5.3 и nginx 1.2.7 + php-fpm.
Я получил следующее исключение
Message: Unable to Connect to ssl://pftradingnet.com:443. Error #179898264: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?
от Zend_Http_Client_Adapter_Socket->connect
функция.
Моя команда настройки
'./configure' '--enable-opcache' '--prefix=/opt/php' '--with-apxs2=/usr/bin/apxs2' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pgsql=/usr' '--with-tidy=/usr' '--with-curl=/usr/bin' '--with-openssl-dir=/usr' '--with-zlib-dir=/usr' '--with-xpm-dir=/usr' '--with-pdo-pgsql=/usr' '--with-pdo-mysql=mysqlnd' '--with-xsl=/usr' '--with-ldap' '--with-xmlrpc' '--with-iconv-dir=/usr' '--with-snmp=/usr' '--enable-exif' '--enable-calendar' '--with-bz2=/usr' '--with-mcrypt=/usr' '--with-gd' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir=/usr' '--enable-mbstring' '--enable-zip' '--with-pear' '--with-libdir=lib' '--with-config-file-path=/opt' '--enable-fpm' '--with-fpm-user=fpm' '--with-fpm-group=fpm' '--enable-debug'
Ранее он работал нормально на php5.3 + Apache2, что может быть причиной ошибки?
1 ответ
Моя ошибка была в том, что я легкомысленно вставил копию cofigure
командный скрипт отсюда.
Я перекомпилировал PHP с --with-openssl
вместо --with-openssl-dir=/usr
и теперь это работает хорошо.