How To Disable Automatic Updates in WordPress
To disable automatic updates in WordPress, simply edit the wp-config.php file in your WordPress root directory and add the following line:
1 |
define( 'WP_AUTO_UPDATE_CORE', false ); |
To disable automatic updates in WordPress, simply edit the wp-config.php file in your WordPress root directory and add the following line:
1 |
define( 'WP_AUTO_UPDATE_CORE', false ); |
If you get the following error in WordPress when using the WPDataTables plugin, follow these steps to fix it: “You are trying to load a table of an unknown type. Probably you did not activate the addon which is required to use this table type.” SOLUTION SUMMARY: You must update the plugin files manually, deactivate […]
If you are unable to update a plugin via the WP admin console, then you can do the update manually. Download the zip file to your local hard drive and extract it. Then, from the command line, do the test run first:
1 2 |
cd {extracted_plugin_directory} rsync -av --dry-run --delete ../{extracted_plugin_directory}/ theHost:/volumes/www/theSite/wordpress/wp-content/plugins/{extracted_plugin_directory}/ |
*Make sure to use the trailing slashes with rsync for proper operation […]
The Problem Tried to install the latest version of cpan and got stuck. Tracked it down to the dependency module Mac::SystemDirectory which was failing to build:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
cpan[1]> install Mac::SystemDirectory Reading '/var/root/.cpan/Metadata' Database was generated on Sun, 09 Jun 2019 07:17:02 GMT Running install for module 'Mac::SystemDirectory' Running make for E/ET/ETHER/Mac-SystemDirectory-0.10.tar.gz Checksum for /var/root/.cpan/sources/authors/id/E/ET/ETHER/Mac-SystemDirectory-0.10.tar.gz ok Scanning cache /var/root/.cpan/build for sizes ............................................................................DONE CPAN.pm: Building E/ET/ETHER/Mac-SystemDirectory-0.10.tar.gz HASCOMPILEREZFt/TESTUSSI.c:2:10: fatal error: 'EXTERN.h' file not found #include "EXTERN.h" ^~~~~~~~~~ 1 error generated. Couldn't execute cc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os "-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" -c HASCOMPILEREZFt/TESTUSSI.c -o HASCOMPILEREZFt/TESTUSSI.o: Inappropriate ioctl for device at Makefile.PL line 14. Requires a compiler Warning: No success on command[/usr/bin/perl Makefile.PL INC=-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE] ETHER/Mac-SystemDirectory-0.10.tar.gz /usr/bin/perl Makefile.PL INC=-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: ETHER/Mac-SystemDirectory-0.10.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INC=-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE' returned status 6400 |
The Solution Use the MacOS installer command to deploy the needed files:
1 2 3 4 5 |
xcode-select --install sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / installer: Package name is macOS_SDK_headers_for_macOS_10.14 installer: Installing at base path / installer: The install was successful. |
The, rerunning the cpan install works:
1 2 3 4 5 6 7 8 9 10 11 |
cpan[1]> install Mac::SystemDirectory ... Running make install Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /Library/Perl/5.18/darwin-thread-multi-2level/auto/Mac/SystemDirectory/SystemDirectory.bs Installing /Library/Perl/5.18/darwin-thread-multi-2level/auto/Mac/SystemDirectory/SystemDirectory.bundle Installing /Library/Perl/5.18/darwin-thread-multi-2level/Mac/SystemDirectory.pm Installing /usr/local/share/man/man3/Mac::SystemDirectory.3pm Appending installation info to /Library/Perl/Updates/5.18.2/darwin-thread-multi-2level/perllocal.pod ETHER/Mac-SystemDirectory-0.10.tar.gz /usr/bin/make install -- OK |
Problem: Trying to run a yum -y update as root aborts with the following error:
1 2 3 4 5 |
The GPG keys listed for the "Percona-Release YUM repository - x86_64" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository. Failing package is: sysbench-1.0.17-2.el6.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Percona |
The solution, found on the Percona website, is this: sudo yum update percona-release Source URL: https://www.percona.com/blog/2019/02/05/new-percona-package-signing-key-requires-update-on-rhel-and-centos/
If you are missing either your “Dashboard > Updates” menu choice, or the “Add New” button or menu choice in the Plugins section, do this to correct it: Edit the wp-config.php file, and change two lines to be false instead of true: For example, here are the two lines fixed:
1 2 |
define('DISALLOW_FILE_EDIT', false); define('DISALLOW_FILE_MODS',false); |
As usual, whenever I have to do sysadmin on a Ubuntu-based OS, I find problems. When will people realize what a horrible OS it is? In this case, packages needed were unavailable. For apt-get to function, the file /etc/apt/sources.list must be edited to change all URLs from security.ubuntu.com and archive.ubuntu.com to old-releases.ubuntu.com, using the sed […]
[root@db1 ~]# service mysqld stop [root@db1 ~]# cd /var/lib/mysql [root@db1 mysql]# ls -l ib_logfile? -rw-rw—- 1 mysql mysql 5242880 Oct 29 23:00 ib_logfile0 -rw-rw—- 1 mysql mysql 5242880 Oct 29 22:38 ib_logfile1 [root@db1 mysql]# mv ib_logfile0 ib_logfile0.old [root@db1 mysql]# mv ib_logfile1 ib_logfile1.old [root@db1 ~]# vi /etc/my.cnf innodb_log_file_size=64M # comment out the old value, if one […]
To convert FROM dev TO www:
1 2 3 4 5 |
use yourDatabase; UPDATE wp_options SET option_value = REPLACE(option_value, 'dev.yourdomain.com', 'www.yourdomain.com'); UPDATE wp_posts SET post_content = REPLACE(post_content, 'dev.yourdomain.com', 'www.yourdomain.com'); UPDATE wp_posts SET guid = REPLACE(guid, 'dev.yourdomain.com', 'www.yourdomain.com'); UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'dev.yourdomain.com', 'www.yourdomain.com'); |
To convert FROM www TO dev:
1 2 3 4 |
UPDATE wp_options SET option_value = REPLACE(option_value, 'www.yourdomain.com', 'dev.yourdomain.com'); UPDATE wp_posts SET post_content = REPLACE(post_content, 'www.yourdomain.com', 'dev.yourdomain.com'); UPDATE wp_posts SET guid = REPLACE(guid, 'www.yourdomain.com', 'dev.yourdomain.com'); UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'www.yourdomain.com', 'dev.yourdomain.com'); |
Stop the instance first…YMMV:
1 2 3 4 5 |
yourHost# ec2-describe-images describe-images -o amazon --filter "manifest-location=*pv-grub-hd0_1.02-i386*" --region us-east-1 IMAGE aki-805ea7e9 ec2-public-images/pv-grub-hd0_1.02-i386.gz.manifest.xml amazon available public i386 kernel instance-store paravirtual xen yourHost# ec2-modify-instance-attribute --kernel aki-805ea7e9 --region us-east-1 i-39764XXX kernel i-39764XXX aki-805ea7e9 |
http://aws.amazon.com/amazon-linux-ami/latest-release-notes/