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:

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

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!

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

Leave a Reply

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