The Plesk Daily Maintenance script automates crucial maintenance tasks for your Plesk server, running once per day to keep your system secure, optimized, and up to date. This guide explains what the script does, its associated tasks, and how to manually execute specific maintenance tasks as needed.
What is the Plesk Daily Maintenance Script?
The Plesk Daily Maintenance script performs a variety of automated tasks essential to maintaining your server's health and performance. Administrators receive daily email notifications with details about the script's execution. These notifications reference specific files depending on your server's OS:
- RHEL-based Linux OS:
/usr/local/psa/admin/plib/DailyMaintainance/script.php
- Debian-based Linux OS:
/opt/psa/admin/plib/DailyMaintainance/script.php
- Windows Server OS:
%plesk_dir%\admin\plib\DailyMaintainance\script.php
What Tasks Does the Daily Maintenance Script Perform?
The Plesk Daily Maintenance script covers a range of essential maintenance functions that help ensure server performance, stability, and security. Key tasks include:
- Checking for Plesk updates - Ensures the latest features and security patches are available.
- Installing updates - Automatically installs Plesk and system package updates as needed.
- Updating license keys - Verifies and refreshes your Plesk license keys.
- Calculating statistics - Gathers data on server usage and performance.
- Updating the application catalog cache - Keeps application data current.
- Log rotation - Manages log files to prevent disk space issues.
Each of these tasks is crucial for maintaining your server's efficiency and security. The tasks can also be run separately if needed.
How to Run Plesk Daily Maintenance Tasks Separately on Linux
- Log into the Server via SSH
Use SSH to connect to your server:
Replacessh [username]@[server_ip]
[username]
with your SSH username and[server_ip]
with the IP address of your server. - List All Available Daily Maintenance Tasks
To see all tasks that can be executed individually, use the following command:
This command will display a list of all available maintenance tasks, including:plesk daily -l
ReportTrialAgreement ReportProductAgreement UpgradePanel CheckForUpdates InstallUpdates InstallSystemPackageUpdates UpdateKeys CheckDomainsResolve PleskUsage Sitebuilder MailUsage ExecuteStatistics ProcessAutoreports OptimizeStatistics AnalyseDomainStatistics AnalyseClientStatistics ExecuteSpamtrain RemoveSpamTempFiles LoadCustomizations UpdateApsCache UpdateApsApplications UpgradeExtensions ExecuteGlCleaner StoreProtectedConfigs ExecuteWebStatistics UpdateModSecurityRuleSet AutoresponderEndDate CheckPostponedFeedback SearchIndex CleanupPanelNotifications ReportUsage UpdatePhpCurlCertificates BackupRestoreStats ComposerSelfUpdate
- Run a Specific Maintenance Task
To execute a particular task, use the following command format, replacingTaskName
with the desired task. For example, to run only the Web Statistics task:
Substituteplesk daily -f ExecuteWebStatistics
ExecuteWebStatistics
with any task name from the list above to run that task individually.
Note
Running these tasks individually is useful when troubleshooting or testing specific maintenance operations. Make sure to consult the latest Plesk documentation for task compatibility with your server configuration.
Disclaimer
Always test changes in a staging environment before applying them to a live server. Confirm compatibility with your specific Plesk and OS version, and refer to Plesk's official documentation as needed.