Zend_Http_Client SSL异常

时间:2013-09-06 16:05:05

标签: php zend-framework ssl nginx zend-http-client

我有 Zend Framework 1.12 项目, PHP 5.5.3 nginx 1.2.7 + php-fpm 安装在Ubuntu 10.04服务器上。

我收到了以下异常

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 个答案:

答案 0 :(得分:1)

我的错误是我轻松地从here复制粘贴cofigure命令脚本。

我已使用--with-openssl而不是--with-openssl-dir=/usr重新编译了PHP,现在效果很好。