Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to enable/disable auto-updates in Plesk?
Answer
-
Go to Tools & Settings > Update Settings.
-
Enable or disable the following options and click OK or Apply to save the changes:
- Automatically install Plesk updates
- Automatically install updates for third-party components shipped by Plesk
- Automatically install system package updates
-
In Windows, start a command prompt as Administrator.
-
Execute the following commands to enable corresponding settings:
Note: If it is required to disable an option, use
false
value instead oftrue
-
Automatically install Plesk updates (Recommended)
# plesk bin server_pref -u -autoupdates true
-
Automatically install updates for third-party components shipped by Plesk
# plesk bin server_pref -u -autoupdates-third-party true
-
Automatically install system package updates
# plesk db "INSERT INTO misc(param, val) VALUES('automaticSystemPackageUpdates', 'true') ON DUPLICATE KEY UPDATE val = 'true';"
-
Enable safe updates for system packages
# plesk db "INSERT INTO misc(param, val) VALUES('systemPackageUpdatesSafeOnly', 'true') ON DUPLICATE KEY UPDATE val = 'true';"
-
Comments
9 comments
Hello team,
After doing what you suggested I am still getting 'disable-updater: false', I am having a hard time trying to find the meaning of it in the documentation, could you please give us more information about this?, As per my understanding in order to avoid updates I should set it to 'true', please advise.
# plesk bin server_pref --show | grep -i update
disable-updater: false
Hi Reynaldo Abimael Aceves Chamosa
In order to disable auto updates please run the following command on the server:
plesk bin server_pref -u -autoupdates false
After that you could check it using the following command:
plesk bin server_pref --show | grep -i autoupdates
autoupdates: false
If you want enable it use the following command:
plesk bin server_pref -u -autoupdates true
And check:
plesk bin server_pref --show | grep -i autoupdates
autoupdates: true
Hi Lev,
I was looking for a description of the 'disable-updater' setting from the 'server_pref' Plesk command, like what you have here in this article https://docs.plesk.com/en-US/onyx/cli-linux/37785/ or https://docs.plesk.com/en-US/obsidian/cli-linux/using-command-line-utilities/server_pref-interface-and-system-preferences.37785/
Hello Reynaldo Abimael Aceves Chamosa,
Thank you for the clarification.
Let me know if you have additional questions.
It's possible to disable only plesk major version upgrades?
For example now we are using plesk 17 and don't want to upgrade to version 18 because we need php 5 support.
Thank's in advance for you answer
How can we modify the hour that Plesk runs autoupdate on our servers?
@Marc Serra No, it is not possible. Please note that Plesk Obsidian supports PHP 5 if your OS supports it(for example Ubuntu 18 does not support PHP 5). Plesk just marks it as outdated.
@Greg P
Update is part of daily maintenance task, please check the article below:
https://support.plesk.com/hc/en-us/articles/115002502385-How-to-check-change-Daily-Maintenance-Task-execution-time-
@Lev Iurev Thank's for answer
Please sign in to leave a comment.