Xen Ubuntu 18 Guest Creation Using xen-create-image (bionic template and netplan fix included)

So I was having issues with deploying Ubuntu 18 guests on a Xen hypervisor. It originally started with a template for bionic not existing. This is easily fixed with a couple of commands to copy the karmic.d template to bionic.d template. However, once your host boots up. You’re now faced with a network issue as … Read more

Upgrading WordPress 3.2.1

So this is the journey to update WordPress 3.2.1 to 5.3 I’ve taken a copy of the site and set it up on a temporary URL and set the following within wp-config.php I’ve also had to drop the PHP version to 5.6 to be able to run the site. Step 1 – Getting to a … Read more

Deploying Ubuntu 18 Guest on Ubuntu 18 Host DomU

TLDR; Head to the bottom and you can update the shipped version of xen-tools 4.7 to 4.8 via the xen-tools GitHub repo. There’s a dpkg available under the releases tab. Currently, the only available version of Ubuntu available to deploy using xen-create-image (xen-tools 4.7-1) on Ubuntu 18 is Ubuntu 16.04 (Zenial) If you want to … Read more

Improve WordPress Comments Load time when using Akismet: Adding an index to wp_comments

A customer of mine was seeing a 15 second load time on their WordPress site when clicking on “Comments”. I installed Query Monitor and saw that the Akismet plugin was running the following SQL command on each comment. SELECT COUNT(*) FROM wp_comments WHERE user_id = 1820 AND comment_approved = 1; This query was to show how many comments the user had previously … Read more

WHMCS and Hexonet ISPAPI Registrar Module “Missing Required Attribute; X-CA-LEGALTYPE” Issue

If you’re running WHMCS and the Hexonet ISPAPI Registrar Module, you might have issues registering .ca domain names. An error will show up when you click on register, here’s a screenshot of the error. Invalid attribute value; INVALID Contact [OWNERCONTACT] (Missing required attribute; X-CA-LEGALTYPE)] This is due to the .ca registry requiring all registrations require … Read more

Fix the “The package could not be installed. PCLZIP_ERR_BAD_FORMAT” WordPress Error

This is pretty straightforward, you’ll see this error when updating or installing a plugin. [enlighter linenumbers=”true”]The package could not be installed. PCLZIP_ERR_BAD_FORMAT[/enlighter] Basically the file WordPress is trying to download is either corrupt or you don’t have the PHP curl module installed. So simply install it, for Ubuntu this is: [enlighter linenumbers=”true”]apt-get install php-curl[/enlighter] or … Read more