pecl 在生产服务器上安装扩展的问题 [英] pecl installing extension on production server troubles

查看:54
本文介绍了pecl 在生产服务器上安装扩展的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在本地安装了 pecl oauth 模块,一切正常.然后我尝试为生产服务器执行此操作,但遇到了一些问题.

So I installed the pecl oauth module locally, and it all works perfectly. I then tried to do this for the production server but ran into some problems.

如果我说 sudo pecl install oauth,我会收到这个错误:

If I say sudo pecl install oauth, I get this error:

No releases available for package "pecl.php.net/oauth"
install failed

所以我想我必须更新 pecl.php.net,所以我尝试了命令 sudo pecl channel-update pecl.php.net,但是我得到了这个输出:

So I figure I have to update pecl.php.net, so I try the command sudo pecl channel-update pecl.php.net, but then I get this output:

Updating channel "pecl.php.net"
Channel "pecl.php.net" is not responding over http://, failed with message:
Connection to 'pecl.php.net:80' failed: Connection refused
Trying channel "pecl.php.net" over https:// instead
Cannot retrieve channel.xml for channel "pecl.php.net" (Connection to `pecl.php.net:443' failed: Connection refused)

有什么想法吗?

推荐答案

好的,我找到了解决方法.你设置了一个代理,但是不是正常的export http_proxy:方式.指令如下:

Ok, I figured out a way around it. You set up a proxy, but not the normal export http_proxy: way. Here's the command:

sudo pear config-set http_proxy http://username:password@yourproxy:yourport

这篇关于pecl 在生产服务器上安装扩展的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆