I am trying to use Composer Dependency Manager for PHP, but I am experiencing the following problem when I use Composer-Setup.exe (Win32 Installer).
Download failed: php_network_getaddresses: getaddrinfo failed: No such host is known. failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. Download failed: php_network_getaddresses: getaddrinfo failed: No such host is known. failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. Download failed: php_network_getaddresses: getaddrinfo failed: No such host is known. failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. The download failed repeatedly, aborting.`
I followed up on several other stackoverflow threads for this error, and I checked out some other forums. In my php.ini, I made sure that I have the following options:
allow_url_fopen = On allow_url_include = On extension=php_openssl.dll
I also tried manual installation of Composer, which asks you to run:
php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
I get the same error from this. However, if I remove "/ installer", it can extract the source. I checked that the url "/ installer" is working. What configuration can cause this behavior? I am running PHP 5.4 on 32-bit Windows 7.
Thanks Andrew
source share