Search code examples
phpproduction-environmentpecl

pecl installing extension on production server troubles


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?


Solution

  • 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