The Importance of Reserved IP Addresses in cPanel/WHM

The Importance of Reserved IP Addresses in cPanel/WHM Managing IP addresses correctly in a hosting environment is crucial for security, stability, and preventing accidental service disruption. In cPanel/WHM, one of the most overlooked features is the Reserved IPs system — a mechanism that prevents specific IP addresses from being used or reassigned improperly. Understanding IP … Read more

Exploring .tar Archives Without Unpacking

Exploring .tar Archives Without Unpacking Inspecting the contents of a .tar or .tar.gz archive is a common task for system administrators and developers. You may want to peek inside without actually extracting anything, and without getting overwhelmed by recursive file listings. This guide walks through several methods—ranging from basic to advanced—and weighs the pros and … Read more

Run Local Scripts Remotely Over SSH in Linux

Run Local Bash Scripts Remotely Run local bash script.sh over ssh, with sudo as root, using custom ssh key and sudo user. Run local bash script.sh over ssh, simplified version Run Local Perl Scripts Remotely Run local Perl perlscript.pl over ssh, quietly (-q)

Install JQ on Windows

The Windows binary file for jq can be downloaded fromhttps://stedolan.github.io/jq/download/ At the time of writing, the latest version ishttps://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe If you want the jq command to be available from everywhere within windows there are 3 steps to be followed: $jqFolderPath = “C:\Program Files\JQ” $jqExePath = “$jqFolderPath\jq.exe” $jqDownloadUrl = “https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe” # Step 1: Create the folder … Read more

Merge the content of multiple .htaccess files in one

The script will search the current directory for all htaccess files and will combine in a single text file. find . -name ‘.htaccess’ -exec echo “### START Imported from”.{}.”###” \; -exec cat {} \; -exec echo “#### END Imported from “.{}.”###” \; -exec echo”” \; >> all-htaccess.txt

Solar Winds Spam Experts Rejection Classification

Messages that are rejected without being quarantined Some messages are rejected immediately without being quarantined. This happens at SMTP level and the rejection is permanent. For example this will happen for Incoming messages in the following scenarios: Have an invalid recipient or domain Do not use TLS (if enforced on the incoming domain) Do not … Read more

.htaccess exceptions for AutoSSL and Let’s Encrypt

for Let’s Encrypt RewriteEngine On RewriteCond %{REQUEST_URI} !\.well-known/acme-challenge RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] for cPanel AutoSSL RewriteEngine On RewriteCond %{REQUEST_URI} !\.well-known/pki-validation RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

Fix cPanel account permissions script

How to use PeachFlame script to fix cPanel account permissions: To get the fixperms script, simply wget the file from GitHub and make sure it’s executable: wget https://raw.githubusercontent.com/PeachFlame/cPanel-fixperms/master/fixperms.sh chmod +x fixperms.sh Fixperms – for all of the users If you would like fix the permissions for every user on your cPanel server, simply use the … Read more

Clear systemd journal /var/log/journal

Systemd logs that are stored in /var/log/journal can be cleared by using journalctl command. Here are some useful commands To find out the size of the log folder: du -sh /var/log/journal/ Clear systemd journals older than n days: journalctl –vacuum-time=30d Clear systemd journals if they exceed n storage space: journalctl –vacuum-size=1G

Use RemoteBox on Ubuntu

Download RemoteBox wget http://remotebox.knobgoblin.org.uk/downloads/RemoteBox-2.6.tar.bz2 Ensure the required dependencies are installed as follows: apt-get install libgtk2-perl libsoap-lite-perl freerdp-x11 tigervnc-viewer To launch RemoteBox, unpack the previously downloaded RemoteBox tarball and run the ‘remotebox’ executable. vboxweb-service need to be installed and active on the target server. The following article describe how to install a Headless Server on CentOS … Read more