Pearのチャネルを追加しようとしたら、コネクションタイムアウトでエラーになりました。
# pear channel-discover pear.channel.com Discovering channel pear.channel.com over http:// failed with message: channel-add: Cannot open "http://pear.channel.com/channel.xml" (Connection to `my-proxy:proto' failed: 接続がタイムアウトしました) Trying to discover channel pear.channel.com over https:// instead Discovery of channel "pear.channel.com" failed (channel-add: Cannot open "https://pear.channel.com/channel.xml" (Connection to `my-proxy:proto' failed: 接続がタイムアウトしました))
pingでpear.channel.comを調べると値はかえってくるので
proxyの設定がうまくいってないらしいです。
PEARをプロキシ経由でインストールする方法 - hogehoge foobar Blog Style5
を参考にPearの設定を確認
# pear config-show Configuration (channel pear.php.net): ===================================== Auto-discover new Channels auto_discover <not set> Default Channel default_channel pear.php.net HTTP Proxy Server Address http_proxy http://my-proxy:proto/ (~ 以下省略 ~)
対象のIPアドレスの設定がありました。
今回は使用しないので、この設定を削除します。
pear config-set http_proxy ''
消えたかどうかの確認
# pear config-show Configuration (channel pear.php.net): ===================================== Auto-discover new Channels auto_discover <not set> Default Channel default_channel pear.php.net HTTP Proxy Server Address http_proxy <not set> (~ 以下省略 ~)
消えました。
このあと、チャネルの追加をしたらうまくいきました。