• Resolved kcho

    (@kcho)


    Hi, is there anyone who has experience using this plugin with a WordPress installed on a hosting that needs to use a proxy for connections with curl?
    Thanks!

    • This topic was modified 1 year, 5 months ago by kcho.
Viewing 1 replies (of 1 total)
  • Hello @kcho

    Greetings for the day.

    Yes, there are people who have experience using the WordPress Download Manager plugin with a WordPress installation that requires the use of a proxy for connections with cURL. The plugin itself doesn’t have built-in proxy support, but you can configure the proxy settings in WordPress to enable cURL to use a proxy.

    To set up a proxy for cURL in WordPress, you can define the proxy settings in your wp-config.php file, which is located in the root directory of your WordPress installation. Here’s how you can do it:

    1. Connect to your hosting account using FTP or a file manager provided by your hosting provider.
    2. Locate the wp-config.php file in the root directory of your WordPress installation.
    3. Download a copy of the wp-config.php file to your local computer as a backup.
    4. Open the wp-config.php file using a text editor.
    5. Add the following lines of code to the file, just before the “/* That’s all, stop editing! Happy blogging. */” line:
    define('WP_PROXY_HOST', 'your_proxy_host');
    define('WP_PROXY_PORT', 'your_proxy_port');
    define('WP_PROXY_USERNAME', 'your_proxy_username');
    define('WP_PROXY_PASSWORD', 'your_proxy_password');
    

    Replace the values ‘your_proxy_host’, ‘your_proxy_port’, ‘your_proxy_username’, and ‘your_proxy_password’ with the appropriate values for your proxy server. If your proxy server doesn’t require authentication, you can omit the last two lines.

    6. Save the changes to the wp-config.php file and upload it back to the root directory of your WordPress installation, replacing the existing file.

    Once you have set up the proxy settings in the wp-config.php file, cURL in WordPress should automatically use the specified proxy for outbound connections. This should apply to any plugins, including the WordPress Download Manager plugin, that use cURL for making network requests.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Proxy support’ is closed to new replies.