Avoid Kernel Reboots with Ubuntu Livepatch from Canonical

Canonical’s Livepatch helps avoid Ubuntu reboots due to kernel upgrades. Livepatch is an alternative to KernelCare from CloudLinux which I showed how to set up here. Canonical are giving you up to 3 servers per account so you can keep those server’s kernels up to date without rebooting and avoid critical downtime! Getting Started with … Learn more…

Single Hop http to https for non-www or www Domain with .htaccess

In the performance world we generally like to avoid doing unnecessary things because they add overhead. This includes unnecessary redirects, wastes of bandwidth and more. This post will show you multiple ways to force Apache or LiteSpeed to redirect your primary domains from http to https in one single hop to avoid unnecessary redirects. For … Learn more…

Blocking Country and Continent with nginx GeoIP on Ubuntu 18.04

Globalization has made cyberattacks much easier 🙁 unfortunately. As a result, you may not want certain countries to visit your site if you mainly get malicious traffic from specific countries that overload your server and slow it down. In this tutorial we will be configuring nginx to use the latest GeoIP database and blocking a … Learn more…

Autodelete Unused Inactive WordPress Themes with WP-CLI

WordPress by default comes with a theme installed so you can get started. The default WordPress theme name generally is named after the year so like this year it is twentynineteen. The default theme is also very important for troubleshooting purposes to make sure that any conflict you may be experiencing on your site with … Learn more…

Automate WooCommerce Database Upgrade Process For Single and Multisite

If you run WooCommerce on a multisite, you have probably gone through the tedious process of running the WooCommerce data upgrader for each subsite. It is not so painful if you only have 5 subsites but imagine if you have 50 or 500! I had a client recently ask ‘I have a WooCommerce multisite with … Learn more…