install docker on cpanel 540x304 - Install Docker on cPanel

Install Docker on cPanel

Side note: I think it’s a bad idea to run Docker on cPanel because, if a user is given root access inside the container, they are just one kernel exploit away from gaining control of the entire server. 1. Install Docker on cPanel From the...

Cover Image by MilesAndryPrower on DeviantArt

Auto-restart MySQL & MySQL Router if it crashes

Here is a small script that will restart the MySQL service in case it crashes. * * * * * /sbin/service mysql status || service mysql start Add it to /etc/crontab to run every minute. More complex script that does the same thing 😀 #!/bin/sh...

MobaXterm Personal 20.3 1w7YtBj5mL 540x304 - 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 540x304 - 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...

mtr 540x270 - 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...

chrome N0XcJxovNQ 540x304 - 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...

vps manage virtualizor enable rescue mode 540x304 - How to Enable / Disable VPS rescue mode in Virtualizor?

How to Enable / Disable VPS rescue mode in Virtualizor?

Rescue mode can be used for a variety of things, including data recovery and OS restoration. How to Enable VPS rescue mode in Virtualizor? Step 1. Log in to your Virtualizor control Panel Step 2. Under List VPS select your VPS then click on the...

chrome KRZ656D7Vo 540x304 - 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...