Updating cPanel & WHM – configuration file and details

Updating the software to its latest version is an important part in server administration. Most of the software developers update their software against vulnerabilities. In a cPanel/WHM server, thier own script is available for update. In this topics I’m going to explain how cPanel/WHM update automatically and manually.

WHM/cPanel is one of the best control panels for web-hosting industry. cPanel installation steps.

How to configure cPanel update via WHM control panel?

You can simply configure the cPanel update via the WHM panel. Please see the steps explained below:

1. Log into WHM panel as root user.
2. Then, go to “Home >> Server Configuration >> Update Preferences.”

This interface allows you to define how your server performs software updates and upgrades.
Here we can configure the following things:

I. cPanel & WHM itself

Here you can select different release tiers for the cPanel software update.

Different available tiers are listed below:

TierDescription
STABLEThis version has received considerable public exposure, testing, and verification.
RELEASEThis version is feature-complete and we test it thoroughly. It contains all intended features and functionality. New installations default to RELEASE.
CURRENTWe tested and verify this version, but it may not contain all of the proposed functionality of a release. This tier is similar to the "release candidate" tier that other publication schemes use.
EDGEWe only perform rudimentary testing on this version.
The features are subject to further modification. This version usually lacks official public documentation.

Then you can specify “How does it update?” from “Daily Updates” sections. Three option are available:

Automatic  ---> If you want cPanel & WHM to automatically update through a cron job every night at midnight.
Manual Updates Only  --->  Select this option if you wish to manually update cPanel & WHM.
Never Update --->  Select this option if you do not want cPanel & WHM to update (Not recommended).

Manual update can be done from the server CLI and from the WHM itself. To update cPanel via shell, please execute the script “/scripts/upcp.” Move to “Home >> cPanel >> Upgrade to Latest Version” fr manual update via WHM panel.

II. Operating System Package Updates

This is similar to “yum update” command. This feature determines whether the nightly maintenance tasks will update the RPM packages from your operating system distribution. This can also be scheduled as; Automatic, Manual Updates Only, Never Update. The same as I mentioned above 🙂

III. Apache SpamAssassin™ Rules Updates

This feature defines how you wish to update the Apache SpamAssassin rules. This can also be scheduled as; Automatic, Manual Updates Only, Never Update.

For more details, please read this cPanel documentation

The same can be done via CLI (command line interface). Here I’m explaining the same.

The configuration file for cPanel update settings is :: “/etc/cpupdate.conf
The configuration file should be look like:

[email protected] [~]# cat /etc/cpupdate.conf
CPANEL=release
RPMUP=daily
SARULESUP=daily
STAGING_DIR=/usr/local/cpanel
UPDATES=manual

Configuration values

Please see the table added below:

Setting description Values Accepted Setting in update preferenceScript
CPANELThis setting determines the Release Tier for the server.edge, current,release, stablecPanel & WHM Updates >Release Tier------
RPMUPThis setting determines the frequency of updates for packages installed by the operating system.daily, manual, neverOperating System Package Updates/scripts/rpmup
SARULESUPThis setting determines the frequency of updates for SpamAssassin rules.daily, manual, neverSpamAssassin Rules Updates/scripts/update_sa_rules
UPDATESThis setting determines whether the update will occur automatically or manually.daily, manual, nevercPanel & WHM Updates >Daily Updates/scripts/upcp

I hope this topic is clear and you got the point!!
Let me know if you need any assistance on this!

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

Leave a Reply

Your email address will not be published. Required fields are marked *