This is an article created to explain several steps takenen to reset the already defined configuration for composer so that it can access directly through HTTP connection without any proxy involved.
As we already knew, below is the steps done which is basically typing certain command in the command line so that the definition of proxy used by composer to connect to the internet is defined clearly. Below is the execution of the command :
user@hostname:~$ export HTTP_PROXY=http://the-address-of-proxy-server:the-port-of-proxy-server
The other command is shown below :
user@hostname:~$ export HTTPS_PROXY=http://the-address-of-proxy-server:the-port-of-proxy-server
It will inform composer whenever the command is being executed and automatically initiate connection to connect via HTTP connection, it will directly use the proxy’s configuration command automatically. It is actually define the environment variable needed to inform composer the URL address of the proxy server.
The other configuration which is important to be defined is the following environment variables :
user@hostname:~$ export HTTP_PROXY_REQUEST_FULLURI=0
or
user@hostname:~$ export HTTP_PROXY_REQUEST_FULLURI=false
user@hostname:~$ export HTTPS_PROXY_REQUEST_FULLURI=0
or
user@hostname:~$ export HTTPS_PROXY_REQUEST_FULLURI=false
If it is not necessary needed anymore, the environment variable used to define the UR address of the proxy server can be reset or redefined. Below are the steps taken as an effort to reset it so that it can bypassed proxy and composer is directly connect to internet :
- Reset and redefine the environment variable by executing the following command :
user@hostname:~$ export HTTP_PROXY=""
and the other command :
user@hostname:~$ export HTTPS_PROXY=""
The above command is actually an effort to empty the environment variable which is used by composer if there is any proxy available to make the HTTP connection successful. So, if it is emptied, composer will realize that there isn’t any proxy server at all and composer can just directly connect to the internet.
2. If the above step doesn’t work, try to define it in a file which is defining the environment variable of the user. Edit file .bashrc in the home directory of the user. Just type the following command using ‘vim’ editor to edit the file .bashrc :
user@hostame:~$ vim .bashrc
Add the following lines in the file :
export HTTP_PROXY="" export HTTPS_PROXY="" export HTTP_PROXY_REQUEST_FULLURI=0 export HTTPS_PROXY_REQUEST_FULLURI=0
3.If the above step is also not working, just try to define it in /etc/profile. Try to edit it using a text editor such as ‘vim’ as shown below :
user@hostame:~$ vim .bashrc
Add the following environment variable to be defined :
export HTTP_PROXY="" export HTTPS_PROXY="" export HTTP_PROXY_REQUEST_FULLURI=0 export HTTPS_PROXY_REQUEST_FULLURI=0
4. Last but not least, if the above steps don’t affect it at all. Just try to restart the operating system