Install and configure Fail2ban for CloudPanel on Ubuntu 22.04

CloudPanel out of the box comes with an application to deal with brute force attacks on SSH, NGINX and WordPress, only SSH has a configuration, the app is called Fail2ban.Fail2ban is an app which bans access to your site from IP…
Keep Github Original Repository and Forked Repo in Sync via the command line

This tutorial looks at keeping a GitHub fork in sync and updated with the original repository, it involves forking a repo from someone else’s account to your GitHub account, making a local copy of your fork via the command line,…
Set up WordPress Code Standards phpcs on VS Code on macOS

Here is a guide on how to get WordPress code standards using PHPCodesniffer on Visual Studio Code text editor using the WordPress code standards, this will be done via adding PHPCodesniffer via Composer, you can also add PHPCodesniffer via Pear or Homebrew, I used…
Set Up SMTP/Email for Local Valet WordPress Development

If you have a Laravel WordPress Valet workflow, you can use MailHog as an email SMTP catchall solution when testing email issues. You set up an SMTP host on the WordPress install and all email sent gets captured in MailHog, a…
Git Command Line References

A reference and collection of Git commands used on the command line… https://gist.github.com/neilgee/9442209
Add phpMyAdmin to ServerPilot

By default when you set up a ServerPilot instance no GUI app is installed for MySQL interaction, ServerPilot recommend using Adminer which has a similar interface to phpMyAdmin and sits as a standalone single php file which you can use…
Add Lets Encrypt SSL Certs on ServerPilot Free Plan

ServerPilots’ free plan does not offer SSL certs from Lets Encrypt, it is only available on the paid plans, here is a guide below that can allow you to install and renew the SSL certs with a custom script. You…
Setting up a WordPress VVV2 Vagrant Workflow

Using VVV2 Vagrant as a WordPress local development workflow is a great flexible platform, here’s mine which uses 3 bits of software, (plus 2 as options) to create a vagrant box. VirtualBox, Vagrant, VVV, VVV Dashboard (optional) and VVV Base…
Deploying a WordPress site via Git Hooks on a ServerPilot Server

This guide looks at setting up a git deployment using hooks to push local commits from a local development to a remote development branch which then published those changes live, stored on a staging domain using a ServerPilot set up.…
Remove Unused Image Media Sizes In Your WordPress Theme

Keeping your WordPress image media library under control can mean a big difference to your site loading faster as well as your hard disk size footprint with the ability to easily back up or migrate your site. You basically need to remove…