【发布时间】:2018-02-05 17:01:14
【问题描述】:
我从源安装了php7.2.2,并开始通过pecl install sqlsrv获取mssql扩展。它回复了pecl search sqlsrv,但通知我运行pear channel-update pear.php.net,之后搜索和安装都无法使用此错误消息:
Connection to `ssl://pecl.php.net:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?
我阅读了各种建议,例如
http://forums.devshed.com/php-development-5/ssl-issue-pear-channel-update-pear-php-net-970623.html
和
SSL issue after pear channel-update pear.php.net ,
但是我在任何地方都没有“openssl.so”库(在某处我读过 php7 已弃用它),php -r "print_r(openssl_get_cert_locations());" 发现函数未定义,并且在 php.ini 中引用从http://curl.haxx.se/ca/cacert.pem 下载的openssl.cafile=/opt/php/lib/php/extensions/no-debug-non-zts-20170718/cacert.pem(不出所料)证明是徒劳的。
如果在 silly 更新之前它运行良好,会发生什么?
【问题讨论】:
-
我重建了整个东西,确切的按摩是
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update。好吧,伙计们,不要这样做......
标签: php ssl pear httpd.conf php-7.2