[PEAR] How to Configure Settings for Authenticated Proxy to Use install
I encountered an error when trying to install with pear.
The cause was that I hadn’t configured the settings for an authenticated proxy.
# pear install Services_Amazon-0.8.0
■ Error details
No releases available for package "pear.php.net/Services_Amazon"
install failed
Let’s check the pear configuration.
# pear config-show
Configuration (channel pear.php.net):
=====================================
Auto-discover new Channels auto_discover
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy
PEAR server [DEPRECATED] master_server pear.php.net
.
.
.
Configure the authenticated proxy information using config-set http_proxy.
# pear config-set http_proxy http://user@pass:proxyserver:port/
Replace user/pass/proxyserver/port with your own values.
After configuration, run # pear config-show and if the HTTP Proxy Server Address http_proxy section shows the configured http://user@pass:proxyserver:port/, then the settings have been applied.
That’s all from the Gemba.