Configure Automatic Update Retrieval and Installation with Cron
The yum-updatesd service is not mature enough for an enterprise environment, and the service may introduce unnecessary overhead. When possible, replace this service with a cron job that calls yum directly.
Disable the yum-updatesd service:
# chkconfig yum-updatesd off
Create the file yum.cron, make it executable, and place it in /etc/cron.daily:
#!/bin/sh
/usr/bin/yum -R 120 -e 0 -d 0 -y update yum
/usr/bin/yum -R 10 -e 0 -d 0 -y update
This particular script instructs yum to update any packages it finds. Placing the script in
/etc/cron.daily ensures its daily execution.
To only apply updates once a week, place the script in /etc/cron.weekly instead.
Will manually updated MySQL,work with cPanel & WHM?
Yes, but you will need to disable MySQL updates on the Update Preferences screen:
1. Go to Main >> Server Configuration >> Update Preferences.
2. Under cPanel Package Updates >> mysqld, click Never.
3. Click Save at the bottom of the page.
There may be compatibility problems with any software you choose to install manually.
Cpanel only supports MySQL versions that they supply with cPanel & WHM.
How to update or change the version of MySQL in Cpanel?
To update MySQL, run
/usr/local/cpanel/scripts/mysqlup
from the command line.
To change the MySQL version, go to Main >> Software >> MySQL Upgrade in WHM.
How to update Apache in Cpanel Servers?
The EasyApache (Apache Update) feature is responsible for updating Apache (along with other applications and libraries).
We must update Apache manually. Apache will not update when you run /scripts/upcp.
Find and use EasyApache:
WHM (in browser) Main >> Software >> EasyApache (Apache Update)
Command line /scripts/easyapache
Whenever you run EasyApache, you are prompted to select the version of Apache you wish to use. If you choose a new version number, EasyApache will update Apache accordingly. It may be important to check back frequently as new Apache builds become available.
Reference: http://cpanel.net
Cpanel Update Server Software feature
The Update Server Software feature manages software dependencies (provided by the operating system) that cPanel requires.
Here’s where you can find and use this feature:
WHM (in browser) Main >> Software >> Update Server Software
And from the command Line