Skip to main content


Joining a new company / team there is always a lot of new items to do / install.  For me as a recent contractor for a new company the following are mandatory to have added:

How to solve "The provided host name is not valid for this server" in Drupal

Don't worry this is an issue that many Drupal developers have come across. In particular it raises its head when you add a subdomain.  Your Drupal website is only showing a plain white screen with “The provided host name is not valid for this server" on it. What does it mean and how to fix it.

Installing Node and npm on CentOS 7

Working on a new CentOS 7 server, Node wasn't installed.  You can quickly this through using the prompt node -v

node not found

In Plesk, the extension had been installed, however this doesn't mean correctly.  So I needed to install Node and npm on the CentOS 7 server.


Allegedly a server upgrade to CentOS 7

I had been running a few Centos 6 servers just past their EOL (30th November 2020) and it was time to kick in to action a plan I had been working on when I realised EOL was on my doorstep.

Plesk changing the default mailbox size

Working through migration on a new Centos 7 server, the default mailbox size is 100MB.  Yes a well organised account doesn't need more than 100MB.  However, how to resolve this size for the outlier people with big mailboxes.

In one of our domains being migrated contains an account with 300MB plus and on another domain 400MB plus.  To change the  default size from 100MB run through shell the following command

Using terminal and dig to check your DNS records

Recently I had an error with a domain smtp server not recognising port 587.  To begin to test what was happening I wanted to get some key information about the server.  My tool of choice was the dig command.  Using the dig command:

How to programmatically create a custom Drupal 8 block

Blocks are a great way to add pieces or chunks of content to your Drupal site.  Capable of displaying simple text, images, forms or complex logic.  There are plenty of sites around that show you how to add a simple custom block.  However, if you are a developer like me, when you are writing your custom block programmatically it has far more requirements than a simple block.  In this article, I'll show how to:

regex expressions a working sheet

Regular expressions (regex) are extremely useful in extracting information from any text by searching for one or more matches of a specific search pattern.

Subscribe to Terminal