Category: Server Administration
How to Disable File Editing in the Admin Area of WordPress
With WordPress 4.9, you now get a warning when you’re about to make a change in the file editors in the WordPress back-end. (For those not following, I’m talking about the editor that you can find at Appearance > Editor, or Plugins > Editor on most WordPress sites.) This is great first-step, and does end one of arguments for disallowing editing of files in the WordPress admin side of the site. That is: people won’t know what that they could break their site when they make changes on those pages.
Speed-Up WordPress: How I Optimized Site Performance on WPShout
Here’s what I learned about making our site even faster.
How to Migrate a WordPress Site with WP-CLI and rsync
There are lots of ways to migrate a WordPress site. Lots of plugins can do it. You can do it over simple (S)FTP. But the quickest way I know of is via rsync and WP-CLI. But that does come with an important proviso: you need to have access to a shell (via a simple local terminal or SSH) to both ends of the migration. And that’s often harder to do than the plugin or SFTP route. But if you’ve got that, this way is a great deal faster.
Local WordPress Development: A Rundown of the Options
One of the first and easiest “tests” that distinguishes established WordPress developers from those who are still getting into it is whether or not they’re using a remote server for development. You can build lots of WordPress sites before you need to have an alternate, personal place to experiment with theme and plugin code. But eventually everyone tries local development, and then they rarely go back to remote-only.
Deactivate a WordPress Plugin via FTP
The conventional method of turning off and on plugins in WordPress works 99.9% of the time. But sometimes, when you’re doing development work in a fast way (possibly “cowboy coding” in a sloppy way… :p), you’ll need to make plugin stop being loaded by WordPress in a different way. For that very small percentage case, it’s useful to know how to disable a plugin when you aren’t able to login to the admin area of a WordPress site. That’s where the (S)FTP hack we’ll cover today comes in.
Course: Working with the Command Line and WP-CLI
When we think about “using a computer,” we usually think in terms of graphical user interfaces, or GUIs: interfaces (like Microsoft Word, the Mac OS, or the WordPress admin interface) that are specially and attractively designed, that have programs and windows and tabs that visibly open and close, and that let you click things and drag things and drop things and hover things.
Limit Login Attempts to Prevent Brute Force Attacks
Many people are worried about WordPress security. The core project is secure (if updated) but that doesn’t stop people form worrying. That said, it doesn’t mean that there is no benefit from taking steps to harden the base configuration. I personally dislike most “security” plugins–they feel too big to me and the benefits they confer are small or unknown.
How and Why to Make a Bash Alias
One of the most obviously annoying things about the terminal — especially to those of us living in the age of touch and GUIs — is how much you need to type. Typing `ssh firstname.lastname@example.org` is never going to feel as fast as hitting a “connect” button, for example. As such, some people just never really like the terminal. While it’s hardly a solution to all your complaints, BASH (and most other Unix terminals) offer a solution to the issue of typing long commands. They’re called “aliases”. They’re essentially shortcuts to commonly typed things that can be as short as one letter. In the case of that’s video that’s exactly what we’ve done. We aliased (the already pretty short :p) command `clear` to be executable with the letter `c`. Here’s the video:
Creating 301 Permanent Redirects with the Redirection Plugin
Setting up 301 redirects is hardly the hardest task an average WordPress user or developer has before them, but it’s a very important one for SEO reasons. When you move a page—especially one that Google has shown an affinity for—it’s really good to make sure that your new page gets that old one’s racked-up affinity.
Understanding 301 Redirects in WordPress (Or: How to Not Ruin Your Client’s SEO)
I find working as a WordPress developer to be relatively low-stress. Giving people a good web presence is both a huge service, and something that doesn’t lead to massive tragedy if you’re not perfect at it right away. It’s not like being a fireman or a fighter pilot, for example.