簡體   English   中英

Zend_Http_Client SSL異常

[英]Zend_Http_Client SSL Exception

我有Zend Framework 1.12項目,並且在Ubuntu 10.04服務器上安裝了PHP 5.5.3nginx 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上運行良好,這可能是導致錯誤的原因嗎?

我的錯誤是我從這里隨意復制粘貼了cofigure命令腳本。

我用--with-openssl而不是--with-openssl-dir=/usr重新編譯了PHP,它現在可以正常工作了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM