Add a Swap Partition to a Ubuntu 22.04 instance

Ubuntu 22 Swap Partition

Below is a guide on how you can add a swap disk/partition to a Ubuntu 22.04 instance, I would recommend that you have a decent amount of hard disk space available to avoid constant use of the swap drive, a…

MySQL/MariaDB [Warning] Could not increase number of max_open_files to more than 32768 (request: 100000)

Mariadb Tuning

Seeing the warning recently on a number of VMs running MySQL/MariaDB.[Warning] Could not increase number of max_open_files to more than 32768 (request: 100000)A MariaDB process has requested a larger amount of open files, you can verify the current limit by…

Set monit to monitor mariadb on a RunCloud instance on Ubuntu 22 & 24

Monit Mariadb

Get up and running with Monit on Ubuntu 22.04Install MonitSSH as root into your VM instance and install Monitapt updateapt install monitStart/stop/restart and see the status of monitsystemctl status monitsystemctl start monitsystemctl stop monitsystemctl restart monitStatus will tell if it’s…

Using MySQL Tuner with MariaDB on Ubuntu 22.04

Mariadb Tuning

Leaving MariaDB settings out of the box may work for some people but not so productive for others, MariaDB can be a resource hog if not checked and result in issues like OOM-Killer(Out of memory) knocking it off.You can use…

Flush DNS cache locally on macOS Ventura, Monterey, Big Sur, OSX, Linux and Windows

Dns Clear Cache

When URLs are just not resolving the way you want, it may be time to clear or flush the DNS nameserver local cache – enter the relevant command in the Terminal/command line for the macOS operating system you are on.How…

Restart and view status of RunCloud services on the Command Line

Runcloud Mariadb Openlitespeed

Here are some command line commands to view the status as well as restart some key services such as OpenLiteSpeed, MariaDB, Redis and Memcached, after having SSH’ed in to your server as root.MySQL/MariaDBGet the status of MariaDBsystemctl status mariadbOutput will…

Getting Browsersync running with Gulp 4 and Valet on macOS

Browsersync Gulp Valet

Get Browsersync going with Gulp 4+ and Valet as a local development environment. With Gulp 4+ there has been some code upgrades that require any older gulp.js files to be updated, this guide looks at making Browsersync work with Gulp…

Converting MySQL/MariaDB database tables from MyISAM to InnoDB

Myisam Convert Innodb Storage Engine Wordpress

The InnoDB storage engine in MySQL/MariaDB is more performant than MyISAM – here are a few ways to change that database structure, using both the command line and also some WordPress plugins.Changing from MyISAM to InnoDB via the command lineIf…

Set Memory Limit for PHP CLI on RunCloud, OpenLiteSpeed

Php8 Macos Update

On a RunCloud instance, PHP CLI is a separate server setting which is a toggle control to set the version of PHP that applies to using PHP commands on the command line for the whole server. You can set it…

Syncing RunCloud and Cloudflare firewalls for fail2ban IPs

Cloudflare Fail2ban Serverpilot

This guide looks at adding a proxied Cloudflare service to a server set up with RunCloud and fail2ban with a WordPress jail conf set up.Once you start using Cloudflare as a CDN solution for your hosting, you are adding another…