pecl installing extension on production server troubles

限于喜欢 提交于 2019-12-10 14:13:59

问题


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.

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

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

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)

Any ideas?


回答1:


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


来源:https://stackoverflow.com/questions/11165400/pecl-installing-extension-on-production-server-troubles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!