• Resolved bg17aw

    (@bg17aw)


    Our company uses a proxy to connect to the internet as part of our IT policy.

    What ports/domains should I ask them to unblock to be able to update my WordPress from my local machine (WAMP)? I cannot even see that updates are available.

    thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Ask them if you need to configure your application (in this case WordPress) to explicitly use the web proxy. It may be that your installation doesn’t know how to or can’t get out to the Internet for updates.

    Thread Starter bg17aw

    (@bg17aw)

    But where can proxies be configured in WordPress?
    I could do that myself if I knew where. Should be in WP-CONFIG.PHP, right?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    It’s probably documented somewhere but from wp-includes/class-http.php

    Adds Proxy support to the WordPress HTTP API.

    There are caveats to proxy support. It requires that defines be made in the wp-config.php file to enable proxy support. There are also a few filters that plugins can hook into for some of the constants.

    Please note that only BASIC authentication is supported by most transports. cURL MAY support more methods (such as NTLM authentication) depending on your environment.

    The constants are as follows:

    1. WP_PROXY_HOST – Enable proxy support and host for connecting.
    2. WP_PROXY_PORT – Proxy port for connection. No default, must be defined.
    3. WP_PROXY_USERNAME – Proxy username, if it requires authentication.
    4. WP_PROXY_PASSWORD – Proxy password, if it requires authentication.
    5. WP_PROXY_BYPASS_HOSTS – Will prevent the hosts in this list from going through the proxy. You do not need to have localhost and the blog host in this list, because they will not be passed through the proxy. The list should be presented in a comma separated list, wildcards usingare supported, eg. *.www.remarpro.com

    An example can be as seen below.

    define('WP_PROXY_HOST', '192.168.84.101');
    define('WP_PROXY_PORT', '8080');
    define('WP_PROXY_BYPASS_HOSTS', 'localhost, www.example.com, *.www.remarpro.com');
    Thread Starter bg17aw

    (@bg17aw)

    Hi Jan,

    I am not sure from your answer where I should put that code, in the end, I found a youtube video https://www.youtube.com/watch?v=x5Jy9MBNSmM
    saying this should go in WP-CONFIG.PHP:

    define(‘WP_PROXY_HOST’, ‘hproxy.iitm.ac.in’);
    define(‘WP_PROXY_PORT’, ‘3128’);
    define(‘WP_PROXY_USERNAME’, ‘SV08V023’);
    define(‘WP_PROXY_PASSWORD’, ‘xxxxxxxxx’);
    define(‘WP_PROXY_BYPASS_HOSTS’,’localhos-t, https://www.exapmle.com’ );

    Hope this will work, I will report back in case someone else finds it useful in the future.

    [Moderator Note: Please ensure that you are embedding links correctly in your posts.]

    Thread Starter bg17aw

    (@bg17aw)

    I can confirm the above code worked, I can now update WP on my local from behind the proxy.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't update: firewall/proxy issues?’ is closed to new replies.