laravel - Composer behind proxy, set up, still not working -


i have virtualbox ubuntu 14.04 behind proxy. i've installed apache2, php, mysql , composer. did google, set system wide proxy, proxy apt-get , git. , according this:

deralsem@dervirtualbox:/var/www/laravel$ composer diag checking composer.json: ok checking platform settings: ok checking git settings: ok checking http connectivity packagist: ok checking https connectivity packagist: ok checking **http proxy**: ok checking **http proxy support request_fulluri**: ok checking **https proxy support request_fulluri**: ok checking github.com rate limit: ok checking disk free space: ok checking composer version: ok 

composer set proxy use. but, trying this:

$ cd /var/www $ git clone https://github.com/laravel/laravel.git navigate laravel code directory , use composer install dependencies required laravel framework. $ cd /var/www/laravel $ sudo composer install 

i have this:

loading composer repositories package information [composer\downloader\transportexception]                                                    "https://packagist.org/packages.json" file not downloaded: php_network_getaddresses: getaddrinfo failed: no address associated hostname                          failed open stream: php_network_getaddresses: getaddrinfo failed: no address associated hostname                                                                          install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [packages1] ... [packagesn] 

any advise appreciated.

please try set http_proxy environment variable

export http_proxy="http://the.proxy" php composer.phar install 

and maybe export https_proxy_request_fulluri=0.

referencing: https://getcomposer.org/doc/03-cli.md#http-proxy-or-http-proxy

(when diagnose command not reporting environment issues correctly, composer bug.)


the error message php_network_getaddresses: getaddrinfo failed: no address associated hostname indicates dns problem.

it seems dns resolving of proxy not configured.

please try changing name servers in /etc/resolv.conf file other nameservers, e.g. sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf.

then might ping url , ip address of packagist.

request url (hostname): https://packagist.org/

remote address: 87.98.253.214:443


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -