Using Cloudflare, an Amazon Load Balancer, with Nginx and Fail2Ban

I recently started using WordOps as the primary infrastructure solution for my WordPress sites. I’ve been quite happy with it as well. I’ve been using Cloudflare for quite a while now, and have been extremely pleased with the product offering; even the free service is fantastic — I have also used Cloudflare as an Enterprise customer. More recently though, I’ve started to dive into Amazon Web Services (AWS) and started using their Load Balancer technology in my high availability WordPress infrastructure configuration. WordOps comes out of the box with a configuration file called cloudflare.conf inside of /etc/nginx/conf.d. This file comes …

Continue ReadingUsing Cloudflare, an Amazon Load Balancer, with Nginx and Fail2Ban

How to Automate WordPress Backups to Amazon S3 with a Bash Script

I’ve been working with WordPress for almost 20 years now. Hosting has always been a pain in my side to properly handle scaling, caching, and delivery. Recently, I started using an Open Source product called WordOps and have been very impressed with it. The following WordPress backup script is tailored to the file structure of WordOps, but it can easily be customized to fit any need. To give you some basics of how I adapted this script. All my sites live in /var/www, such as /var/www/ and furthermore, the main directories live in htdocs. For example, /var/www/ which is where …

Continue ReadingHow to Automate WordPress Backups to Amazon S3 with a Bash Script

Show Only Children Pages on Parent Page

There is still much to be desired within WordPress when it comes to dealing with parent and children pages. The core code is there, and it’s usable, but there’s not a lot “out of the box” to play with. We’ve developed a bit of code to help make your life a little easier. Adding the code below to your functions.php file will let you remove the other children pages while on the parent page. Here are some examples of what it would like without the code, then with the code. A huge thanks goes out to Matt Martz for working …

Continue ReadingShow Only Children Pages on Parent Page

WordPress Tutorial: Using SSH to Install/Upgrade

This tutorial will guide you step by step on how to setup your server so you can install new plugins and upgrade existing plugins using an SSH2 layer in PHP and WordPress.

What is WordPress?
WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest self-hosted blogging tool in the world, used on hundreds of thousands of sites and seen by tens of millions of people every day.

What is SSH[2]?
SSH (Secure Shell) is a protocol allowing a secure channel to be established between a web server and a client’s local machine. Many web hosting companies now offer SSH for greater security.

Continue ReadingWordPress Tutorial: Using SSH to Install/Upgrade

OpenX Advanced Targeting Using WordPress

What is Openx OpenX is, in my opinion, the most efficient and hands-free open source ad server on the web today. It’s flexible, easy to use, and best of all, free. What is WordPress? WordPress is one of the leading platforms in blogging on the web today. Whether you are self-hosted (using or being hosted on Automattic servers (using, WordPress is an amazing blogging platform which makes blogging easy and fun. This OpenX and WordPress tutorial will outline how to more effectively use the targeting features of OpenX utilizing the built-in features of WordPress. It will explain how …

Continue ReadingOpenX Advanced Targeting Using WordPress