Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to install Composer but the installer tries to download files automatically over the internet. This won't work because I'm behind a corporate proxy that blocks some ports and content.

I do have admin rights on my PC, so how can I install this software?

share|improve this question
4  
Use the manual download. – Ramhound Feb 6 at 10:58
I think this one is no longer too localised after the edits. – Hennes Feb 7 at 17:00

3 Answers

Firstly have you raised this with your support guys, if you've got a proxy you've likely got rules around installing software. But there should a procedure to follow somewhere.

Two things you can do. Download composer on your home machine to find out what the extra components are that it requires. Then find standalone installers for those components and install them first. i.e. if you've already got all the bits, then it might not need to download them.

Contact the developer see if they can publish/create a full installation package for you.

share|improve this answer
1  
+1 for "have you asked the support guys". That is their/our work and they might be very happy to see some person asking a serious question (rather than Halp halp! How do I turn off capslock again?) – Hennes Feb 7 at 16:59

Just click the the Latest Snapshot link that is on the page you referenced. That has the files that the setup program is downloading.

share|improve this answer
I don't know what to do with those files - I'm on Windows not in Linux... – George Katsanos Feb 6 at 14:27
1  
See this link explaining phar files. If you are working with PHP (which what composer is for) they likely assume you know what to do with a phar file. (similarly as if if you where working with java and I gave you a jar file) – Scott Chamberlain Feb 6 at 14:29
I just wanted to install composer as a requirement for a bundle I need to install in Symfony2 framework.. Thanks for the info I will look it up – George Katsanos Feb 6 at 17:42

With Linux, simply exporting a variable should be enough:

export http_proxy=http://your.proxy.server:port/

if it was not working, proxychains would have been more than enough to solve the problem.

With Windows, it's a bit more tricky. I'm not even sure there is something similar to the http_proxy env variable under Windows. Still, you can try third party programs such as Proxyfier, Proxycap or Freecap.

share|improve this answer
The OP is not asking how to setup a proxy, or even how to bypass a proxy. The OP wants to know how to install Composer without using Composer's Web Installer. – BenjiWiebe Feb 6 at 19:26
No. He wants to install Composer. There are tons of ways of doing it. I chose to talk about a way to open the proxy to the installer. I don't see why this would not be a good solution. Plus, this can be useful in many other cases where programs just don't ask Windows how to get connected to the internet. But you seem to know much more than me and I guess there is only one uniq solution for him to solve his problem. But you haven't disclosed it yet. I find downvoting a bit harsh in this case since my answer can help him or others in the same or similar case(s). – Gael Feb 7 at 9:16
http_proxy sets a proxy. The OP already has a proxy set, and the proxy is blocking stuff. So how would setting the http_proxy environment variable help anything? – BenjiWiebe Feb 7 at 13:43
OBTW, the OP's question is tagged windows, not linux. – BenjiWiebe Feb 7 at 14:28
@BenjiWiebe Are you really that stupid? The question is Windows specific because George is using Windows but the question also applies to Linux/MacOS. Are you so short-sighted that you can't understand that this question can be found by a MacOs/Linux user as well when googling and that my answer can also be useful to them? http_proxy is the env variable for proxies that almost all programs under Linux uses to KNOW what the proxy settings ARE. If Composer KNEW what the proxy settings WERE, it would not fail. Does that make sense to you? – Gael Feb 7 at 15:08
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.