MobaXterm Personal 20.3 1w7YtBj5mL - Create a custom 404 error page for static sites with Caddy

Create a custom 404 error page for static sites with Caddy

If you are using Caddy 2 web server, the handle_errors directive allows creating a new rule for serving a custom page on a 404 error. In this example I have created a custom 404 template in a file named 404.php and the following directive is set:...

reboot aws instance - 3 Ways to Reboot AWS Instance EC2

3 Ways to Reboot AWS Instance EC2

Here are 3 different ways to restart EC2 AWS Instance: 1. Reboot EC2 Instance using AWS Console Login into your AWS EC2 ConsoleNavigate to “Instances” and Select instance which you want to restart, right-click on it and then select “Reboot”Click...

mtr - Run MTR (traceroute) every minute

Run MTR (traceroute) every minute

From time to time I’m experiencing Connection timed out errors in cPanel > Sent Summary and I need a way to run MTR at that exact time to troubleshoot the network problem. For this I can create a new script, mtr.sh: /usr/sbin/mtr -r -c 2 domain.com...

chrome N0XcJxovNQ - How to find out which email filter is triggered in cPanel

How to find out which email filter is triggered in cPanel

When you have 30+ email filters set in cpanel, and you want to know exactly which one was triggered here is how to test: Step 1. Find the email location. Inside your Webmail look for the View Source or View Original option: Or navigate to the files...

chrome KRZ656D7Vo - How to Enable/Disable debug mode in CakePHP

How to Enable/Disable debug mode in CakePHP

To enable debug mode in CakePHP go to config folder and open app.php find ‘debug’ => filter_var(env(‘DEBUG’, false), FILTER_VALIDATE_BOOLEAN), and change the value of debug false to true Older CakePHP versions To enable debug mode in older versions...

MobaXterm Personal 20.3 kv2c2lOpG8 - Bash script to check server load and notify by email

Bash script to check server load and notify by email

Shell scripts are always to handy to do some tasks on a Linux-based server for SysAdmins, they can automate everything they do frequently through a shell script. Here I’m going to share a simple script that I got from Muhammed Fasal to monitor...

vps log error - How to Troubleshoot Virtualizor backups

How to Troubleshoot Virtualizor backups

Virtualizor saves backups for each VPS in two files: .inf which contains JSON information about the VPS.img file which contains the actual OS image Because the Virtualizor interface allows you to see backup logs only for the last 50 backups, I...

chrome 7KylPVg1w7 - Where are individual email filter files on a cPanel server

Where are individual email filter files on a cPanel server

Recently I did an article on Where are autoresponders and forwarders files on a cPanel server but what about email filters? Filter files for individual email accounts do not exist by default, but are created when user adds filters or cpanel user...

chrome cIwEe6Mvbr - How to add custom logo to cPanel login page

How to add custom logo to cPanel login page

To add a custom logo to the cPanel login page you can either overwrite the default cPanel logo or upload a new one from WHM. How to overwrite cPanel login logo To overwrite the default logo, simply upload the file in the same folder: 1. SFTP to your...