-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer behind proxy (https) #2041
Comments
Do you have two different proxies for http and https? Right now composer only reads the http_proxy env var, so that might be an issue we need to address. |
No. They are identical. |
it doesnt work with just the http_proxy variable either |
Then I am not sure what's up.. I guess it works in your browser since you're posting here so your proxy is probably not to blame. Which version of openssl 1.0.1 do you have? Very old variants might be buggy, but I think the whole 1.0.1 range should work. |
for me, it is 1.0.1c |
1.0.1-4ubuntu5.9 |
There are multiple problems, if using composer behind a proxy. I wouldn't say the problem starts with a buggy openssl versions: error message of "composer diag": Checking platform settings: OK [Composer\Downloader\TransportException] As you see, if composer tries to check for the http connectivity it checks directly for the https://packagist.org . That might be a problem of the permanent redirect of packagist.org (from http to https) or because it might switch automatically to https if openssl is enabled. So better check a different url and the diag procedure might not be correct. I can succesfully load https://packagist.org via wget (with --no-check-certificate) and via curl (with -sS). my exported environment variables: export http_proxy=myproxy openssl version: 0.9.8 disabling openssl and running "composer install --prefer-dist -vvv" let's me download the packages but when times come to install them:
Any ideas, what I should try? |
You can use --prefer-source as a workaround but that can make installs |
Problem solved. |
Hi, Checking http connectivity: FAIL I'm using an actual Version of Lubuntu in a VMWare VM. I don't know, if I have a proxy, that is preventing something, but the Windows Host System has no problems connecting to composer via https. I'm posting from my VM, so https in general is also not the problem. What could it be, and how can i fix it? Thanks, Daniel |
Hi, $ php composer.phar install [Composer\Repository\RepositorySecurityException] 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] [--ignore-platform-reqs] [packages1] ... [packagesN] |
locate cacert.pem vi /usr/local/lib/php.ini #add this openssl.cafile=/usr/local/share/perl5/Mozilla/CA/cacert.pem press esc then type:wq #enter curl -sS https://getcomposer.org/installer | php -- —version=1.0.0-alpha10 mv composer.phar /usr/local/bin/composer alias composer='/usr/local/bin/composer' composer -V php /usr/local/bin/composer global self-update cd .composer/ |
Hi, I setup system variables like: And when I executed:
What I'm missing? Thanks in advance |
Same problem. Windows 10, PHP 7.1 - 7.3, I had have old version of composer and there is the same problem.
Still problem. I download manual latest version of composer: 1.8.6 | 2019-06-11 Still problem. Try PHP 7.1, PHP 7.3 Still problem. I even add my PHP and Apache to windows firewall, but.
AND
|
I am trying to use composer behind a proxy and I am unable to access https urls.
composer.phar diag output
I tried with HTTP_PROXY_REQUEST_FULLURI or HTTPS_PROXY_REQUEST_FULLURI false value.
I have hpp_proxy and https_proxy set and correct. I also checked OpenSSL version and it is 1.0.1. Is this a known issue?
The text was updated successfully, but these errors were encountered: