InMotion Hosting Support Center

I can not install DRUSH using PEAR

Category: Drupal 7

2016-04-23 1:07 am EST

Hits: 1,029

Givea this error: [~]# pear channel-discover
Discovering channel over http:// failed with message: channel-add: Cannot open "" (Connection to `' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known)
Trying to discover channel over https:// instead
Discovery of channel "" failed (channel-add: Cannot open "" (Connection to `' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known))

This is my configuration:

Configuration (channel
Auto-discover new Channels auto_discover <not set>
Default Channel default_channel
HTTP Proxy Server Address http_proxy <not set>
PEAR server [DEPRECATED] master_server
Default Channel Mirror preferred_mirror
Remote Configuration File remote_config <not set>
PEAR executables directory bin_dir /home/sifneo5/bin
PEAR documentation directory doc_dir /home/sifneo5/php/docs
PHP extension directory ext_dir /home/sifneo5/php/ext
PEAR directory php_dir /home/sifneo5/php
PEAR Installer cache directory cache_dir /home/sifneo5/tmp/pear/cache
PEAR configuration file cfg_dir /usr/local/lib/php/cfg
PEAR data directory data_dir /home/sifneo5/php/data
PEAR Installer download download_dir /home/sifneo5/tmp/pear/cache
Systems manpage files man_dir /usr/local/php/man
PEAR metadata directory metadata_dir <not set>
PHP CLI/CGI binary php_bin /usr/local/bin/php
php.ini location php_ini /usr/local/lib/php.ini
--program-prefix passed to php_prefix <not set>
PHP's ./configure
--program-suffix passed to php_suffix <not set>
PHP's ./configure
PEAR Installer temp directory temp_dir /home/sifneo5/tmp/pear
PEAR test directory test_dir /home/sifneo5/php/tests
PEAR www files directory www_dir /usr/local/lib/php/htdocs
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
PEAR password (for password <not set>
Signature Handling Program sig_bin /usr/bin/gpg
Signature Key Directory sig_keydir /usr/local/etc/pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
User Configuration File Filename /home/sifneo5/.pearrc
System Configuration File Filename /usr/local/etc/pear.conf [~]#

You must login before you can ask a follow up question.

You must login before you can submit an answer.



43,761 Points
2016-04-25 9:29 am EST
Hello psifneos,

Sorry to hear you are having trouble with installing Drush via PEAR. Have you tried installing Drush with Composer? This should get it installed on your server and have you ready to go.

Kindest Regards,
Scott M

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!