The wp-cli command-line utility allows you to manage your WordPress sites without going through the WordPress dashboard, much like Drush does for Drupal. To install Composer and wp-cli on Ubuntu 16.04: Install Composer (I’d recommend not doing this as root.) Install wp-cli This installs wp-cli to $HOME/.config/composer/vendor/wp-cli/wp-cli/bin/wp To make things easier on yourself, symlink it:
Tag: WordPress
WordPress: Optimizing Nginx and WP Super Cache
Today we’re going to compare the performance of a WordPress site before and after we install and optimize the WP Super Cache plugin. We’re running Ubuntu 16.04 Server, Nginx 1.10, PHP 7 with the Zend OPcache, MariaDB, and WordPress 4.6 with a few other plugins (Akismet, Jetpack, Yoast SEO, and Google Analytics). The system itself […]
Your First Steps in WordPress
Once I’ve set up your WordPress blog, I recommend that you take the following steps: 1) Change your password to something secure and useful. There are various random password generators that you can use around the web, but I’d recommend picking a phrase that you can remember easily. Keep in mind that it’s a bad idea […]
Bash: WordPress Installer
A basic WordPress installer in Bash. Assumes Ubuntu 14.04 LTS, so adjust as necessary. The end-of-line backslashes here are added for ease of display, so remove them before running this.
WordPress Plugin Development Tutorial
This article is intended to serve as a simple WordPress plugin development tutorial. For the purpose of demonstration we’ll create a plugin that removes comment spam. For this to work, you have to be running some sort of anti-spam system like Akismet that marks spam comments as such when they’re submitted. Comments are written into […]
WordPress: Installation and Performance
This article describes some of the basics on installing and running WordPress to maximize its performance. The following scripts and text generally assume Debian/Ubuntu, so substitute Red Hat, Arch, etc. as needed. Installation If you’re less lazy than I am, you could combine the whole install routine into a single Bash script, and make it […]