I often see people asking how to move a WordPress database between servers, and it usually seems like they’re doing it the hard way. I move sites between domains, from PROD to dev, dev to UAT, and so on, and this is how I’ve been doing it for years, 100%…
Category: WP-CLI
How to fix “Error: Another update is currently in progress.”
First, if you aren’t technical AND you don’t have CLI access to your server AND you don’t have WordPress’s CLI tool installed, maybe read this article instead (but don’t install the plugin, just use phpMyAdmin). If you’ve got all of the above, just run:
How to create a command that holds other commands in wp-cli (WordPress CLI)
Almost every major site I work on has at least one custom wp-cli command that I’ve built to manage or automate things. But I always run into the same problem, I don’t want my command to be a root command, I want it to live in a namespace of my…
New wp-cli commands
wp profile Installation This command requires at least v.0.23.0 but you should probably be running at least 1.1.0 anyways. You also need to define SAVEQUERIES as true in your wp-config.php file. Install via wp package install wp-cli/profile-command. If you run into errors you might need to temporarily up your PHP memory…
Varnish as a frontend for a remote WordPress install – Part 1
This tutorial assumes two sites, varnish.chris.example.com and web.chris.example.com. Both of my test sites will be created on DigitalOcean but on separate instances. Both will be running basic Ubuntu 14.04. On web.chris.example.com Install Nginx Add the dev repo so that we can get to 1.7.x: sudo apt-add-repository ppa:nginx/development sudo apt-get update Verify…
WordPress command line (WP-CLI) and proc_open
WP-CLI is an awesome command line tool to manage your WordPress installation. You can view plugin information, perform plugin or core updates and show the current cron tasks. This is great for both system administrators who don’t always have user accounts within WordPress as well as WP admins who don’t want to fire up a…