How to use PEAR behind proxy?

拈花ヽ惹草 提交于 2019-12-02 17:59:29

Instead of using the system's http_proxy, set the proxy directly in pear's config;

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

You also may have an issue with your sudo user having different configuration from your user for pear.

If you make this :

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

Then

sudo pear channel-discover pear.symfony-project.com

You have change user and the proxy is still not set.

So use the appropriate command:

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

(Issue spotted on Ubuntu 11.04 fresh install)

boran

Note that pear config-set http_proxy works whereby pecl config-set http_proxy does not, even though pecl config-get http_proxy does.

That one cost me me quite a bit of hair pulling :-)

czezz

This will remove proxy settings:

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