pecl在php 5.6下安装oci8

时间:2015-07-09 15:20:39

标签: php ssl pecl oci8 php-5.6

我有一个流浪的虚拟机与PHP 5.6 - 宅基地 - 我正在尝试为php安装oci8驱动程序。

我支持公司SSL代理,但我无法成功使用PECL:

证书位置

dynamic d = JObject.Parse(jsonString);
            foreach (dynamic e in d)
            {
                Console.WriteLine(e.title);
            }

/usr/lib/ssl/cert.pem =>这是SSL代理的证书,与cURL,npm,composer使用的证书相同,而且效果很好

的php.ini

Array
(
    [default_cert_file] => /usr/lib/ssl/cert.pem
    [default_cert_file_env] => SSL_CERT_FILE
    [default_cert_dir] => /usr/lib/ssl/certs
    [default_cert_dir_env] => SSL_CERT_DIR
    [default_private_dir] => /usr/lib/ssl/private
    [default_default_cert_area] => /usr/lib/ssl
    [ini_cafile] => /etc/ssl/certs/acme.pem
    [ini_capath] => /etc/ssl/certs
)

pecl config

[curl]

curl.cainfo = /etc/ssl/certs/acme.pem

[openssl]
openssl.cafile = /etc/ssl/certs/acme.pem
openssl.capath = /etc/ssl/certs

每次运行vagrant@sherwood:/usr/share/php$ sudo pecl config-show Configuration (channel pecl.php.net): ===================================== Auto-discover new Channels auto_discover <not set> Default Channel default_channel pecl.php.net HTTP Proxy Server Address http_proxy http://usr:pwd@proxy:port/ PEAR server [DEPRECATED] master_server pear.php.net Default Channel Mirror preferred_mirror pecl.php.net Remote Configuration File remote_config <not set> PEAR executables directory bin_dir /usr/bin PEAR documentation directory doc_dir /usr/share/php/doc PHP extension directory ext_dir /usr/lib/php5/20131226 PEAR directory php_dir /usr/share/php PEAR Installer cache directory cache_dir /tmp/pear/cache PEAR configuration file cfg_dir /usr/share/php/cfg directory PEAR data directory data_dir /usr/share/php/data PEAR Installer download download_dir /build/php5-S4xmO_/php5-5.6.10+dfsg/pear-build-download directory PHP CLI/CGI binary php_bin /usr/bin/php php.ini location php_ini <not set> --program-prefix passed to php_prefix <not set> PHP's ./configure --program-suffix passed to php_suffix <not set> PHP's ./configure PEAR Installer temp directory temp_dir /tmp/pear/temp PEAR test directory test_dir /usr/share/php/test PEAR www files directory www_dir /usr/share/php/htdocs Cache TimeToLive cache_ttl 3600 Preferred Package State preferred_state stable Unix file mask umask 2 Debug Log Level verbose 1 PEAR password (for password <not set> maintainers) Signature Handling Program sig_bin /usr/bin/gpg Signature Key Directory sig_keydir /etc/pear/pearkeys Signature Key Id sig_keyid <not set> Package Signature Type sig_type gpg PEAR username (for username <not set> maintainers) User Configuration File Filename /home/vagrant/.pearrc System Configuration File Filename /etc/pear/pear.conf 时,我都会收到以下错误:

  

警告:频道&#34; pecl.php.net&#34;已更新其协议,使用&#34; pecl channel-update pecl.php.net&#34;更新       连接到`ssl:// proxyURL:proxyPORT&#39;失败:

请注意,使用pear它可以,但我找不到 oci8 包。

我似乎无法在网上找到任何关于此的答案,有人可以帮助我吗?

0 个答案:

没有答案