Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 659
prashn64 Avatar asked Jun 22 '12 23:06

prashn64


People also ask

Where is PECL package installed?

The module will be installed in /usr/lib64/php/modules/ as /usr/lib64/php/modules/uploadprogress.so.

What is PECL in Linux?

PECL (PHP Extension Community Library) is a spin-off of PEAR, and is primarily used to house groups of functions that are no longer bundled with the default installation of PHP. As of PHP 5, these extensions can be downloaded and installed separately from the regular PHP download.


1 Answers

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
like image 178
prashn64 Avatar answered Oct 05 '22 21:10

prashn64