August 29, 2012
PEAR connection problems
Having trouble connecting to PEAR channels like pear.phpqatools.com
, pear.phpunit.de
, or pear.netpirates.net
? I frequently see this error:
Channel "pear.phpqatools.org" is not responding over http://, failed with message: Connection to 'pear.phpqatools.org:80' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known`
Your ISP may be the problem. Mine (Rogers Cable in Canada) certainly was. To get around this issue, choose a HTTP proxy (IP and port number) from http://hidemyass.com/proxy-list/ and set it as PEAR’s proxy with this command:
sudo pear config-set http_proxy {proxy ip here}:{proxy port here}
You can turn the proxy off with this command:
sudo pear config-set http_proxy ""
layout: ../../layouts/BlogPost.astro
Potentially related issues on GitHub: