Bulk Delete cPanel Subdomains by Matching String
Warning: this is a dangerous script, that deletes in bulk, matching string subdomains from a cpanel account. It is designed as one liner.
Tips, tricks, how-to, tutorials – all about Information Technology – Since 2004
Warning: this is a dangerous script, that deletes in bulk, matching string subdomains from a cpanel account. It is designed as one liner.
Managing and Cleaning up the Eximstats SQLite Database in cPanel What Is the Eximstats Database? The eximstats database is used by cPanel servers to store statistics about email traffic. It captures data such as messages sent, failed deliveries, deferrals, and more. This data is useful for mail reporting in WHM or for scripts parsing mail … Read more
WordPress plugins play a crucial role in extending the functionality of websites. However, from a security perspective, it is important to be aware of the plugins installed on a server, as outdated or vulnerable plugins can be exploited by attackers. This guide provides a simple Bash one-liner to search for a specific WordPress plugin across … Read more
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)
Troubleshooting the Imunify360 Agent Understanding the Imunify360 Agent vs. imunify360-agent Command For system administrators working with Imunify360, it is important to differentiate between the Imunify360 Agent as the core functionality of the security suite and the imunify360-agent command-line tool. The Imunify360 Agent is a service that runs continuously in the background, providing real-time security monitoring, … Read more
The command is using whmapi1 and jq and needs to run as root. whmapi1 listaccts want=user –output=json | jq ‘.data.acct | length’ This command does:
There is no excerpt because this is a protected post.
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
For example, if you want to enable or disable JetBackup 5, in the feature named default To enable, run: sed -i ‘s/jb5=0/jb5=1/’ /var/cpanel/features/default To disable, run: sed -i ‘s/jb5=1/jb5=0/’ /var/cpanel/features/default If you want to enable for all feature sets, the target should be /var/cpanel/features/*
List existing handlers /usr/local/cpanel/bin/rebuild_phpconf –current Example Output: DEFAULT PHP: ea-php74 alt-php44 SAPI: cgi alt-php51 SAPI: cgi alt-php52 SAPI: cgi alt-php53 SAPI: cgi alt-php54 SAPI: cgi alt-php55 SAPI: cgi alt-php56 SAPI: cgi alt-php70 SAPI: cgi alt-php71 SAPI: cgi alt-php72 SAPI: cgi alt-php73 SAPI: cgi alt-php74 SAPI: cgi alt-php80 SAPI: cgi alt-php81 SAPI: cgi ea-php51 SAPI: cgi … Read more
cPanel release tiers explained LTS A well-tested and proven version that cPanel, L.L.C. supports for one full year.STABLE A version that is feature-complete, fully tested, and is in widespread use.RELEASE A version that is feature-complete and well tested.CURRENT A “release candidate” version that is tested but may not be feature-complete.EDGE A development version for testing … Read more
There is no excerpt because this is a protected post.