Install Laravel behind proxy

…衆ロ難τιáo~ 提交于 2019-12-10 21:05:13

问题


Im trying to install Laravel on a windows machine.
I followed this guide up to point 11.
http://www.wikihow.com/Install-Laravel-Framework-in-Windows

I also ran two commands already (which I got from https://stackoverflow.com/a/18852026/2240163)

set http_proxy=<your_http_proxy:proxy_port>
set https_proxy=<your_https_proxy:proxy_port>

But on running composer install i am met with a message

  C:\wamp\www\LARAVEL>composer install
  Loading composer repositories with package information

  [Composer\Downloader\TransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: SSL
  : The specified procedure could not be found.

  failed to open stream: Cannot connect to HTTPS server through proxy

How can I get past the proxy to install Laravel 4.

.
.

Here in lay the solution

C:\wamp\www\LARAVEL>set http_proxy=http://mnel:******@192.168.20.4:8080
C:\wamp\www\LARAVEL>set https_proxy=https://mnel:******@192.168.20.4:8080 

I then ran the install composer command again and presto! https://stackoverflow.com/a/24958700/2240163
Thanks @mneute


回答1:


Here in lay the solution

C:\wamp\www\LARAVEL>set http_proxy=http://mnel:******@192.168.20.4:8080 C:\wamp\www\LARAVEL>set https_proxy=https://mnel:******@192.168.20.4:8080

I then ran the install composer command again and presto!

https://stackoverflow.com/a/24958700/2240163

Thanks @mneute




回答2:


I got this same issue when I ran composer -vvv install. I did it in windows7 computer behind a company firewall. I search and tried every possible answer but didn't work. Then I tried following and it did work https://www.calazan.com/how-to-set-the-proxy-settings-in-windows-via-command-line/



来源:https://stackoverflow.com/questions/26780165/install-laravel-behind-proxy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!