Skip to main content

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.

clearing cache

At times while developing in October CMS, you will perform a step that kills the site.  Recently, I had transferred the site to production and I was working through our steps to cross check deployment.  This included reviewing the error logger plugin.  The error logger has four tabs Mailer, Slack, Syslog and Relic.

npm error config/core.js missing

I started out with a simple task... install Tailwindcss.  What unfolded is something that many of us have experienced time and time again.

For anyone that has completed this task before knows that through shell the command is

shell command to know who is the current user

For what reason would you need to find the identity of the current user? You are the current user!  However, if you are like me and run multiple user accounts for different domains, then having the ability to quickly check is important.

who

The output from who gives you the name of the current user (denoted below as {username}), the terminal they are logged in at, the date and time when they logged in and the IP address:

yum command for clearing cache and make

Whilst updating nodejs and npm on a Centos 6 or 7 server running Apache, I hit a few walls and as a matter of process found some commands that are handy to run before doing a deep dive in Google.

 

Cleaning the cache

sudo yum clean all
rm -rf /var/cache/yum/*

To make the cache

sudo yum clean all; sudo yum makecache

If you want to run several commands use semi-colon as noted above.

 

ls commands in Apache / Linux

This page shows a growing list of common commands for viewing and managing your Centos server.

ls syntax
$ ls [options] [file|dir]

ls command main options:

Subscribe to Terminal