Fixing WHM problems automatically using WHM Autofixer
Now you have angel hands for solving your WHM related (selected) problems. cPanel has introduced Autofix for WHM to automatically solve a number of common problems.
The Autofixer is a collection of scripts that can be run from WHM to fix some common issues not otherwise fixable or accessible from command line.
The collection of autofixer scripts are available on httpupdate.cpanel.net/autofixer/.
How to use Autofixer?
You can run an autofixer from https://YOUR_SERVER_IP:2087/scripts2/autofixer. Change the YOUR_SERVER_IP to your server's IP address. It will ask you for username and password.
You can also run the autofixer from terminal:
/scripts/autorepair scriptname
Change scriptname to the actual script name you want to execute. See below for a list!
On the Autofixer window, you have to enter the script name and hit the Submit button. The script will fix the problem it was intended for! cPanel is kind to provide a test script to verify if your autofixer is working fine. This test script won't change anything indeed! Put test in the box Enter script name and hit Submit button.
Available Autofixer Scripts
There are many autofixer scripts. The name and purpose of some are here:
- test — Test autofixer on your system, nothing gets changed.
- bsdbindfix — Resolve port issue with BIND 9.
- compresszlibfix — Fix for compress zlib error.
- dbdmysql — DBD::mysql fix for older version of Red Hat (i.e. 7.3).
- fpindexfile — Fix for FrontPage index.
- iptablesflush — Flush iptables rules from WHM if you are firewalled from SSH access.
- libxml64fix — Fix for libXML on 64-bit systems.
- resellerresourceacctounts — Fix for reseller resource accounts.
- safesshrestart — Restores SSH Config and restarts SSH, should you be locked out.
- vfilterfix — Restores /etc/vfilters files.
- yumduprpmfix — This script will attempt to locate and resolve any duplicate RPMs.