PHP Composer behind http proxy

If you are using Windows, you should set the same environment variables, but Windows style: set http_proxy=<your_http_proxy:proxy_port> set https_proxy=<your_https_proxy:proxy_port> That will work for your current cmd.exe. If you want to do this more permanent, y suggest you to use environment variables on your system.

2 php.ini files

Depends on where you are running PHP from. If you run it from command line, it uses the cli/php.ini and apache2/php.ini when run through apache. You are executing phpinfo() through the browser, hence you get /etc/php5/apache2/php.ini as the answer. Running php -r “phpinfo();” | grep “Loaded Configuration” from the terminal should output the CLI ini. … Read more