Skip to content
kalzac.net

Kalzac.net - Hodge Podge of Scripts

  • Home
  • WHM/cPanel
  • Troubleshooting
  • WordPress Free Scripts
  • Everything Else
  • Contact
kalzac.net
Kalzac.net - Hodge Podge of Scripts
  • How to Permanently Disable Swap on a WHM/cPanel Server
    WHM/cPanel

    How to Permanently Disable Swap on a WHM/cPanel Server

    BySteve July 9, 2026July 17, 2026

    User How to turn your swap file off permanently on a WHM/cPanel Linux server.Note this is also applicable for a normal server i.e. no WHM installed. Assistant Yes — on most WHM/cPanel Linux servers, swap is made permanent via `/etc/fstab`. To turn it off now and after reboot, comment out the swap line in `/etc/fstab`,…

    Read More How to Permanently Disable Swap on a WHM/cPanel ServerContinue

  • Multiple WordPress Blog 410 Redirect Script
    Wordpress Free Scripts

    Multiple WordPress Blog 410 Redirect Script

    BySteve July 5, 2026July 28, 2026

    Asked AI for this script to create an MU plugin that I could install with WP-CLI to redirect all 404’s to 410 – Page permanently gone.While it might seem odd to those who redirect to the homepage, I had thousands of missing pages across several hundred blogs that had been removed for various reasons. And…

    Read More Multiple WordPress Blog 410 Redirect ScriptContinue

  • Script to replace Wordpress Core Files on a Malware Infected site
    Troubleshooting

    Script to replace WordPress Core Files on a Malware Infected site

    BySteve July 4, 2026July 28, 2026

    I used this script for replacing WordPress core files on a domain that had malware. I kept selected files and folders, the rest the script, using WP-CLI, overwrote with fresh files puled from wordpress.org I kept the wp-content folder, and replaced wp-admin & wp-includes I kept these files in the root of the domain Run…

    Read More Script to replace WordPress Core Files on a Malware Infected siteContinue

  • Contact Form 7 Not Sending Email
    Troubleshooting

    Contact Form 7 Not Sending Email

    BySteve July 3, 2026July 28, 2026

    This is a Step by Step for Solving This Particular Issue with NameCheap Change [account] and [IP]to your servers settings. This was for a Namecheap registered domain. You will need to adjust if using another registar. All cmds where run as root, except for those noted as being run in the Terminal under the relevant…

    Read More Contact Form 7 Not Sending EmailContinue

  • Check all Databases on a Server Account
    WHM/cPanel

    Check all Databases on a Server Account

    BySteve July 3, 2026July 28, 2026

    Script to audit all WordPress installs under [Account] i.e. /home/Account/ Assumes you have root accessThis will show every wp-config.php, the DB name, DB user, whether the DB exists, and whether the DB user exists. Change [accountname] to the account you wish to audit e.g. /home/accountname/The script will check these paths: The output columns will be:WP_CONFIGDB_NAMEDB_USERDB_EXISTSDB_USER_EXISTSDB_USER_MATCHES…

    Read More Check all Databases on a Server AccountContinue

Page navigation

Previous PagePrevious 1 2

© 2026 Kalzac.net - Hodge Podge of Scripts - WordPress Theme by Kadence WP

  • Home
  • WHM/cPanel
  • Troubleshooting
  • WordPress Free Scripts
  • Everything Else
  • Contact