我已经配置了pear config-set http_proxy "$http_proxy"
,但这没有任何效果。
下面看一下我得到的输出是什么:
pecl install bz2
WARNING: "pear/bz2" is deprecated in favor of "channel://http://php.net/bzip2/ext/bz2"
Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in PEAR/Proxy.php on line 101
Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /usr/local/lib/php/PEAR/Proxy.php on line 101
Notice: Undefined variable: proxy_host in PEAR/Proxy.php on line 103
Notice: Undefined variable: proxy_port in PEAR/Proxy.php on line 103
Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in PEAR/Proxy.php on line 101
Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /usr/local/lib/php/PEAR/Proxy.php on line 101
Notice: Undefined variable: proxy_host in PEAR/Proxy.php on line 103
Notice: Undefined variable: proxy_port in PEAR/Proxy.php on line 103
Could not establish SSL connection through proxy ::
答案 0 :(得分:0)
我遇到了同样的问题。
我通过将以下内容添加到 php.ini
解决了这个问题,所有错误都消失了。
openssl.cafile=/etc/ssl/certs/ca-bundle.trust.crt