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:
|STABLE||This version has received considerable public exposure, testing, and verification.|
|RELEASE||This version is feature-complete and we test it thoroughly. It contains all intended features and functionality. New installations default to RELEASE.|
|CURRENT||We 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.|
|EDGE||We 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
Please see the table added below:
|Setting||description||Values Accepted||Setting in update preference||Script|
|CPANEL||This setting determines the Release Tier for the server.||edge, current,release, stable||cPanel & WHM Updates >Release Tier||------|
|RPMUP||This setting determines the frequency of updates for packages installed by the operating system.||daily, manual, never||Operating System Package Updates||/scripts/rpmup|
|SARULESUP||This setting determines the frequency of updates for SpamAssassin rules.||daily, manual, never||SpamAssassin Rules Updates||/scripts/update_sa_rules|
|UPDATES||This setting determines whether the update will occur automatically or manually.||daily, manual, never||cPanel & 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!