{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4142","labels_url":"https://api.github.com/repos/composer/composer/issues/4142/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4142/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4142/events","html_url":"https://github.com/composer/composer/issues/4142","id":88071269,"number":4142,"title":"Connection timed out","user":{"login":"stevekessler","id":867985,"avatar_url":"https://avatars.githubusercontent.com/u/867985?v=3","gravatar_id":"","url":"https://api.github.com/users/stevekessler","html_url":"https://github.com/stevekessler","followers_url":"https://api.github.com/users/stevekessler/followers","following_url":"https://api.github.com/users/stevekessler/following{/other_user}","gists_url":"https://api.github.com/users/stevekessler/gists{/gist_id}","starred_url":"https://api.github.com/users/stevekessler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevekessler/subscriptions","organizations_url":"https://api.github.com/users/stevekessler/orgs","repos_url":"https://api.github.com/users/stevekessler/repos","events_url":"https://api.github.com/users/stevekessler/events{/privacy}","received_events_url":"https://api.github.com/users/stevekessler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Documentation","name":"Documentation","color":"0b02e1"},{"url":"https://api.github.com/repos/composer/composer/labels/Easy%20Pick","name":"Easy Pick","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/composer/composer/milestones/6","html_url":"https://github.com/composer/composer/milestones/Bugs","labels_url":"https://api.github.com/repos/composer/composer/milestones/6/labels","id":162532,"number":6,"title":"Bugs","description":"Bugs that have to be looked at","creator":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"open_issues":55,"closed_issues":94,"state":"open","created_at":"2012-08-18T15:15:20Z","updated_at":"2015-12-09T17:17:53Z","due_on":null,"closed_at":null},"comments":42,"created_at":"2015-06-13T21:51:49Z","updated_at":"2015-12-30T20:18:31Z","closed_at":null,"body":"I am getting the following error when trying to install Composer. \r\n\r\nDownload failed: file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: Connection timed out \r\n\r\nI have checked and I can download the composer.phar from the URL above but for some reason when running the installer script it fails.  \r\n\r\nI am on Ubuntu 14.04 LTS with PHP 5..5.9 installed.  \r\n\r\nAny help with this is greatly appreciated.  \r\n\r\n**Jump to [https://github.com/composer/composer/issues/4142#issuecomment-117648869] for a solution.**"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/168067506","html_url":"https://github.com/composer/composer/issues/4142#issuecomment-168067506","issue_url":"https://api.github.com/repos/composer/composer/issues/4142","id":168067506,"user":{"login":"rodx1977","id":8885079,"avatar_url":"https://avatars.githubusercontent.com/u/8885079?v=3","gravatar_id":"","url":"https://api.github.com/users/rodx1977","html_url":"https://github.com/rodx1977","followers_url":"https://api.github.com/users/rodx1977/followers","following_url":"https://api.github.com/users/rodx1977/following{/other_user}","gists_url":"https://api.github.com/users/rodx1977/gists{/gist_id}","starred_url":"https://api.github.com/users/rodx1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodx1977/subscriptions","organizations_url":"https://api.github.com/users/rodx1977/orgs","repos_url":"https://api.github.com/users/rodx1977/repos","events_url":"https://api.github.com/users/rodx1977/events{/privacy}","received_events_url":"https://api.github.com/users/rodx1977/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T20:18:31Z","updated_at":"2015-12-30T20:18:31Z","body":"I managed to solve the php composer.phar install connection timeout issue in my case working on a linux box . Though it is not the best workaround, maybe this will help others: I took the /etc/hosts file and typed this entry\r\n "}}