How to update CPanel/WHM from shell command line (SSH) ...
It is highly recommended to *ONLY* do your control panel updates from the shell, whilst you are watching the screen.Connect by SSH to your server/VPS, and su - to root then ...
Updating using the web-scripts is prone to failure, and dependant on YOUR connectivity to the internet.
You should *NEVER* just switch on automatic updates and hope for the best - letting someone else decide what and when to update your system, will lead to downtime.
# bring all cpanel scripts up to date
# update to the latest version of cpanel/whm
# upgrade mysql to the latest supported version
- /scripts/upcp ---force
# upgrade email to the latest version
- /scripts/mysqlup --force
# apply any new hotfixes
- /scripts/exim4 --force
Finally restart the Cpanel/WHM process with
- /etc/init.d/cpanel restart