• Resolved jetxpert

    (@jetxpert)


    Hi there,

    For security reasons, we’re using the following commands in our wp-config.php file:

    define('WP_HTTP_BLOCK_EXTERNAL', true);

    define('WP_ACCESSIBLE_HOSTS', '*.www.ads-software.com, *.siteground.com, *.sgcpanel.com');

    The above commands work great for our site with the following exception:

    We have to change

    define('WP_HTTP_BLOCK_EXTERNAL', true);
    to
    define('WP_HTTP_BLOCK_EXTERNAL', false);

    in order to change our PHP version using the SG Optimizer plugin

    Affected Plugin Path:

    WP > SG Optimizer > Environment Optimization > Set Your PHP Version > PHP Management Method > Set Manual PHP Version

    Question:

    What URL or HTTP site is being used by SiteGround to update the PHP version? We’d like to add it to the above list of websites (i.e., URLs). Above URLs do not work.

    Thank you!

    • This topic was modified 4 years, 9 months ago by jetxpert.
    • This topic was modified 4 years, 9 months ago by jetxpert.
Viewing 1 replies (of 1 total)
  • Thread Starter jetxpert

    (@jetxpert)

    Good Day!

    Update:

    After thorough research, found a solution (fix) for our issue:

    (1) We installed the plugin “Snitch” (this plugin detects all website outgoing/incoming http requests).

    (2) After we installed the plugin, we attempted again to change the PHP version of our website using SG Optimizer.

    (3) The plugin “Snitch” revealed that the PHP version request was being processed by the URL: updates.sgvps.net.

    (4) We whitelisted (i.e., inserted) updates.sgvps.net in our list of ‘WP_ACCESSIBLE_HOSTS’ and, voila, our problem was fixed.

    Anyway, would like to recommend SiteGround add the above information to their knowledgebase in order to help others when using the above wp-config.php commands.

    Thank you!

    • This reply was modified 4 years, 9 months ago by jetxpert.
Viewing 1 replies (of 1 total)
  • The topic ‘Cannot Switch PHP Version When Using WP_HTTP_BLOCK_EXTERNAL’ is closed to new replies.