简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM