How to enable automatic updates
When I log into WHM on a new server that I deployed a couple of months ago, I'm often notified that there is an update available to install, which I then install manually.
On my old servers, updates were done automatically.
I looked for the setting to make sure updates were set to automatic, but apparently this doesn't exist anymore and updates are supposed to be automatic by default.
Is there any way to confirm that my server is actually set to perform updates automatically?
-
do this in (root) command terminal:
cat /etc/cpupdate.confyou should see something like :
CPANEL=stable
RPMUP=daily
SARULESUP=daily
STAGING_DIR=/usr/local/cpanel
UPDATES=daily
the last line means that cPanel is updated daily.In here:
https://support.cpanel.net/hc/en-us/articles/360053076314-How-to-re-enable-automatic-updatesit says that you can enable automatic updates in WHM, but that's not the case any more
Additional information here:
https://docs.cpanel.net/whm/server-configuration/update-preferences/0 -
quietFinn - thanks for pointing that out. I've actually just removed that entire article since that doesn't apply to modern systems.
0 -
I thought my problem might have been the delay, but I'm on STABLE so there shouldn't be a delay
0 -
Is there a solution for this?
If I look at the root cron tab, I can see -
30 20 * * * (/usr/local/cpanel/scripts/fix-cpanel-perl; /usr/local/cpanel/scripts/upcp --cron > /dev/null)
So it appears that it *should* run at 8:30pm every night
0 -
Hi,
Did you check the /etc/cpupdate.conf file to ensure that the "UPDATES" value is set to daily? If this has already been set, I recommend checking the cPanel update logs within /var/cpanel/updatelogs to see if you can find any issues occurring with the updates.
0 -
I think I worked it out - I think I'm seeing these notifications in the morning, but if I don't do it manually it updates that night.
0
Please sign in to leave a comment.
Comments
6 comments