IP addresses to block to stop WP auto-update?

You don’t need to block the IP address at all. Append this code in wp-config.php of your website in case you have access to it:: define(‘WP_AUTO_UPDATE_CORE’, false); Alternative Method This will hide update messages for all kind of users:: Add this function to your functions.php function hide_update_notice_to_all_but_admin_users() { if (current_user_can(‘read’)) { remove_action( ‘admin_notices’, ‘update_nag’, 3 … Read more

If statement in wp-config.php, is it possible?

Following on from the comments thread… Here’s a method I’ve used for a long time for handling the ‘not ideal’ scenario of different configurations between environments. The following is a heavily cut-down representation of wp-config.php but it demonstrates the idea… <?php /** * The base configurations of the WordPress. * * This file has the … Read more

Moving wp-config.php outside root folder where we have multiple wordpress websites for enhanced security [duplicate]

Move wp-config.php to its new location somewhere above “public_html” and add a new “skeleton” wp-config.ph in the WordPress directory e.g. <?php include(‘/dir_above_public_html/priv-applecom/wp-config.php’); ?> The wp-config.php script is included by other WordPress files. So to include this from a non default location we can simply 1. move our “real” wp-config from the WordPress directory to where … Read more

Moving wp-config.php one level up – 500 error – Nginx [closed]

In this answer, I assume the following, going by your question: Your WordPress site is at /var/www/html Your WordPress sites’s full config file is at /var/www/wp-config.php There is a small file at /var/www/html/wp-config.php that (ideally) will load /var/www/wp-config.php Your /var/www/wp-config.php contains all the necessary content to run your WordPress site (ie, the code from wp-config-sample.php, … Read more

WordPress failing to update plugins

I have WordPress on Unbutu as well. Maybe this will get you started. (I’m assuming you have access with command line through Terminal via SSH. If that assumption is in error, forgive me.) In a typical WordPress install there are likely three users, similar to: root:root www-data:www-data (Apache) user:user sudo lxd (WHERE “user” is some … Read more