image 12 540x304 - Find and truncate all files in the oldest subdirectory

Find and truncate all files in the oldest subdirectory

This command will search for directories in the current directory and its subdirectories, find the oldest subdirectory in each directory, and display them on to screen: find . -maxdepth 1 -type d -exec sh -c 'oldest_folder=$(ls -ltr "$1" | awk "/^d/...

chrome sai1VB3Iin 540x304 - cPanel: Create a MySQL database & user using data from wp-config.php

cPanel: Create a MySQL database & user using data from wp-config.php

Here is a small script that I use when migrating WordPress websites from some other panel to cPanel. I export the database on the old server and then simply copy the .sql dump file along with all other WP files from the old server to the new one...

chrome Iidan6iGUv 540x304 - Install ImageMagick & imagick PHP extension to cPanel

Install ImageMagick & imagick PHP extension to cPanel

Step 1. Install imagemagick on the server: yum -y install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl To check if installed: /usr/bin/convert --version Step 2. Install the imagick PHP extension to all PHP versions on the cPanel server:...

image 8 540x304 - iOS Universal Links not working behind Cloudflare

iOS Universal Links not working behind Cloudflare

Support universal links are used for iOS developers so that users can tap a link to the website and get seamlessly redirected to their installed app without going through Safari. Apple has pretty well-explained documentation on how to setup...

chrome DZMflbXKid 540x304 - Use AbuseIPDB API to block bad IP's on ConfigServer Firewall

Use AbuseIPDB API to block bad IP’s on ConfigServer Firewall

AbuseIPDB has a free API plan that will allow you to get a list of up to 10.000 blacklisted IP addresses that are currently reported for malicious activity. On a Linux server, we can use this data to automatically block that bad IP traffic from our...

what is cpanel 540x304 - Disable greylisting on all cPanel accounts

Disable greylisting on all cPanel accounts

Here is a simple one-liner that will disable the greylisting feature for all cPanel accounts on the server:

for i in $(\ls /var/cpanel/users) ; do uapi --user=$i cPGreyList disable_all_domains ; done