Scheduled tasks automate recurring operations:
To Create a Scheduled Task:
1. Log into Plesk
2. Go to Websites & Domains
3. Click "Scheduled Tasks"
4. Click "Add Task"
Configure the Task:
- Task Type: Run a command or PHP script
- Command: Full path to script
- Run: Select schedule (hourly, daily, custom)
Example Commands:
Run PHP Script:
```
/usr/bin/php /var/www/vhosts/domain.com/httpdocs/cron.php
```
WordPress Cron:
```
/usr/bin/php /var/www/vhosts/domain.com/httpdocs/wp-cron.php
```
Curl Request:
```
/usr/bin/curl -s https://yourdomain.com/cron.php
```
Tips:
- Test commands manually first
- Check task logs for errors
- Do not schedule too frequently (resource usage)
- Use full paths to executables