This document describes the steps to update various parts of your cPanel & WHM server.
Update cPanel & WHM
We strongly recommend that you regularly update cPanel & WHM on all of your servers. WHM displays the server's current version in the upper right corner of the interface.
In the WHM interface
To update cPanel & WHM via the interface, use WHM's Upgrade to Latest Version interface (WHM >> Home >> cPanel >> Upgrade to Latest Version).
- You can use WHM's Update Preferences interface (WHM >> Home >> Server Configuration >> Update Preferences) to specify your server's update settings and release tier. For an explanation of our release tiers, read our cPanel & WHM Versions and the Release Process documentation.
- For the latest available releases of cPanel & WHM, visit our httpupdate page.
- If cPanel & WHM will not update, submit a ticket to cPanel Support.
You can run the
/usr/local/cpanel/cpanel -V command to verify the current cPanel & WHM version.
To update cPanel & WHM from the command line, use the
/usr/local/cpanel/scripts/upcp script as the
root user. This script handles most of the updates on your cPanel & WHM system.
This script also calls a number of other scripts within the
/usr/local/cpanel/scripts directory to update most of the software on your system. The
/usr/local/cpanel/scripts/upcp script also runs the following scripts:
/usr/local/cpanel/scripts/rpmup— Updates system software. You can run this script instead of the
/usr/local/cpanel/scripts/sysup— Updates required operating system (OS) software dependencies.
EasyApache 4 updates Apache, as well as other applications and libraries. We strongly recommend that you run EasyApache when a new Apache build becomes available.
To update EasyApache via the interface, click Run System Update in WHM's EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4).
Update software and services
You can update many services and third-party software through both the WHM interface and manually.
To update cPAddons, use WHM's Manage cPAddons Site Software interface (WHM >> Home >> cPanel >> Manage cPAddons).
This feature allows you to select the cPAddons that you wish to update automatically.
To update MySQL via the interface, use WHM's MySQL/MariaDB Upgrade interface (WHM >> Home >> Software >> MySQL/MariaDB Upgrade).
Operating system (OS) kernels
After you update the kernel, you must reboot your server.
To update the kernel via the interface, select the Include kernel packages checkbox when you update your system with WHM's Update Server Software interface (WHM >> Home >> Software >> Update Server Software).
To update the kernel manually, run the
yum update command.
- We strongly recommend that you allow your operating system's distribution to control updates to both the system and cPanel Perl installations. Do not customize either Perl installation.
- cPanel, Inc. does not support updates of Perl beyond the operating system's or cPanel's distribution.
- We also do not support Perl downgrades. Your system will return Perl to the currently-supported version during the next system update.
- Neither your system Perl or cPanel-included Perl are likely to become corrupt. However, if you suspect that either instance of Perl is corrupt, a greater system issue may exist on your server. We recommend that you open a cPanel support ticket.
You can use the following methods to update Perl and Perl modules:
- Run the
/usr/local/cpanel/scripts/upcpscript, which causes WHM to run the
/usr/local/cpanel/scripts/check_cpanel_rpmsscript, which updates Perl.
- Run the
/usr/local/cpanel/scripts/update_local_rpm_versionsscript to update custom modules.
Instances of Perl on your server rely on RPMs for installation and maintenance.
You can use the following methods to update the Apache or system PHP installations:
To update Apache's PHP via the interface, use WHM's EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4) .
To update the system PHP manually, run the
PHP extensions and applications
You must manually update any PHP extensions that you installed manually.
To update extensions and applications via the interface, use WHM's EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4).
To update cPAddons that you have installed, use WHM's Manage cPAddons Site Software interface (WHM >> Home >> cPanel >> Manage cPAddons Site Software).
To update extensions and applications manually, run the
Third-party repositories can cause problems with cPanel & WHM and updates from the OS repository. Be aware of the risks before you use a third-party repository.
To update RPMs, run the
You must manually update any manually-installed RPMs that cPanel & WHM's default installation does not include. These RPMs and packages will only receive an update if you have added them to the YUM repository.
You must manually update any Ruby Gems that you have installed.
When you install Ruby, cPanel & WHM only installs the required modules. To update these modules, run the