How to set up cron jobs in Plesk: a full guide
Published on July 10, 2026 9 min read
Learn step by step how to set up cron jobs in Plesk: scheduled tasks for wp-cron and your own PHP scripts, the cron format explained and how to check that your task really runs.
You should not have to run recurring tasks by hand. With a cron job you let the server fetch a web address or run a PHP script automatically at set times: think of keeping wp-cron running reliably, an import from another system or a daily report. This guide shows you step by step how to set up cron jobs in Plesk, the control panel you use to manage your hosting at LJPc. Below you will find a clear step plan, ready-to-use examples and a few tips to check that your task really runs.
What is a cron job?
A cron job (also called a scheduled task) is a command that the server runs automatically on a fixed schedule. The name comes from cron, the scheduler that runs in the background on Linux servers and checks every minute whether a task is due. You decide what should happen (the command) and when it happens (the schedule).
Cron jobs are useful for anything that needs to run at set times without someone pressing a button. Common examples are sending queued emails, fetching data through an API and running maintenance scripts. WordPress relies on scheduled tasks too, but by default it does so in a less reliable way. We will come back to that below.
Before you start
You manage cron jobs yourself in Plesk. You open Plesk from the customer portal: go to Services > Sites, open your site and click Log in to Plesk in the Site overview block. You are signed in automatically, so you do not need a separate password. Read more in open Plesk from the customer portal. Make sure you also have the following to hand:
- The web address or PHP script you want to run. You put your own script in your hosting space with FTP, see upload files with FTP.
- For WordPress: know where the
wp-config.phpfile of your site is. - An idea of how often the task should run, such as every 15 minutes or once a night.
With most packages you set up scheduled tasks yourself. If you do not see Scheduled Tasks in Plesk, contact support and we will look into it with you.
How to set up cron jobs in Plesk, step by step
Creating a scheduled task in Plesk takes a few steps. The step plan works for any task type.
Open Scheduled Tasks
- In Plesk, go to Websites & Domains.
- Open the Dashboard tab in the card of your domain and click Scheduled Tasks under Dev Tools. Here you see an overview of your existing tasks.

Set up the task
- Click Add Task. The Schedule a Task page opens. Leave Active ticked.
- Under Task type, choose what the task should do: Fetch a URL (request a web address), Run a PHP script (run a PHP file) or Run a command. Then fill in the web address, the path to the script or the command. Which type fits when is explained in the examples below.
- Under Run, choose how often the task runs: Hourly, Daily, Weekly, Monthly or Yearly with a time, or Cron style for a schedule of your own, such as every 15 minutes. How that schedule works is explained below.
- Give the task a name you will recognise later under Description.
- Under Notify, choose whether you want an email: Do not notify, Errors only or Every time. Then choose Other users under Send notifications to and fill in your own email address, so you know for sure that the notification reaches you. Separate several addresses with a comma.
- Click Run Now to run the task once straight away. At the bottom right you see whether it worked, and See details shows the output. The task has not been saved yet at this point.
- If everything is correct, click OK. The task now appears in the overview and runs on your schedule.

Setting the schedule: the cron format
If you choose Cron style under Run, you fill in one field with five values separated by a space. Each value stands for a part of the time. An asterisk (*) means every value, and */N runs the task every N units. So */15 in the first position means every 15 minutes.
| Position | Meaning | Range |
|---|---|---|
| 1 (minute) | Minute | 0 to 59 |
| 2 (hour) | Hour (24-hour clock) | 0 to 23 |
| 3 (day-of-month) | Day of the month | 1 to 31 |
| 4 (month) | Month | 1 to 12 |
| 5 (day-of-week) | Day of the week | 0 to 6 (0 is Sunday) |
A few common schedules:
*/15 * * * *runs every 15 minutes.0 3 * * *runs every night at 03:00.0 4 * * 1runs every Monday at 04:00.0 22 * * 1-5runs on weekdays at 22:00.30 2 1 * *runs on the first day of the month at 02:30.
Plesk runs the tasks in Dutch time (Europe/Amsterdam). A task set to 0 3 * * * therefore starts at 03:00 Dutch time.
Common cron jobs with examples
Below are the tasks customers automate most often, each with a working example. Replace yourdomain.com and the paths with your own.
Keeping WordPress wp-cron reliable
WordPress has its own scheduler, wp-cron, for tasks such as publishing scheduled posts, updates and backups. That scheduler only starts when someone visits your site. On a quiet site tasks therefore run late, and on a busy site wp-cron runs too often, which slows the site down. The fix is to switch wp-cron off and let a real cron job start it. There are two ways to do that; pick one.
With WP Toolkit. If you manage your site in Plesk under WordPress in the menu on the left, one switch does the job: turn on Take over wp-cron.php in the card of your site. WP Toolkit then switches wp-cron off itself and creates a scheduled task that runs wp-cron.php at regular intervals. You will find that task under Scheduled Tasks afterwards. Read more about WordPress in Plesk in install WordPress in Plesk.
Set it up yourself. First switch wp-cron off. Open wp-config.php and add this line above the line that reads "That's all, stop editing!":
define('DISABLE_WP_CRON', true);
Then create a task in Plesk of the type Fetch a URL that requests the wp-cron address. This is the quickest method: you only fill in an address.
https://yourdomain.com/wp-cron.php?doing_wp_cron
Set the schedule to Cron style with */15 * * * *, so wp-cron runs every 15 minutes. Plesk counts the task as successful when your site answers with a status code in the 200 or 300 range.
Note: until you have set up a scheduled task, WordPress runs no scheduled tasks at all after you switch wp-cron off. So set up the task straight away. When you move on to maintenance, also read how to update WordPress safely.
Running your own PHP script
If you have your own script, for example for an import or a report, choose the type Run a PHP script. Under Script path, fill in the path from the root folder of your hosting space, such as httpdocs/cron/task.php. The folder button next to the field lets you browse to the file. If your script needs extra parameters, put them under with arguments. This is also how you run the Laravel scheduler every minute, with httpdocs/artisan as the script and schedule:run as the argument; Git, Node.js and Laravel in Plesk shows how to set it up.

Under Use PHP version, choose the same version as your website. Plesk does not take over the version of your site by itself: in the example above the task is set to 8.2.35, while the site runs on 8.4. If you later change the PHP version of your site, update your scheduled tasks as well. How to view and change the version of your site is explained in change the PHP version in Plesk.
Running a command
With Run a command you run a command in a shielded environment of your hosting space. The root folder of your subscription is / there, so your website is in /httpdocs. That environment contains basic programs such as wget, curl, tar and zip. Programs such as mysqldump and WP-CLI (wp) are not included. That is why you run a PHP script with Run a PHP script rather than as a command.
Automating a database backup
For a regular backup of your database, use the backup feature of Plesk instead of a cron job of your own. In the Dashboard tab of your domain, click Backup & Restore, and use the Schedule button there to plan an automatic backup of your website and databases. How that works is explained in back up your website. You create a new database as described in create a database in Plesk.
Clearing the cache
A cache that is never refreshed keeps showing outdated pages. If you use WordPress, leave clearing it to your cache plugin. LiteSpeed Cache, the plugin for our servers that run LiteSpeed, can for example refresh pages itself at a set time. Which cache suits your site is explained in speed up your website. WP-CLI (wp cache flush) does not work in a scheduled task. If your site has its own cache folder, let a small PHP script clean it and schedule that with Run a PHP script.
Checking that your cron job works
A cron job that fails silently is only noticed when something goes wrong. So always check that the task really runs.
- Use Run Now. This runs the task immediately, and at the bottom right you see whether it finished without errors. See details shows the output.
- Turn on notifications. Choose Errors only under Notify and fill in your own email address under Send notifications to. That way you are told when something goes wrong.
- Keep the output. Have your script write its result to a log file, so you can read back later what happened.
- Check the schedule. If the task does not run at the expected moment, check that Active is ticked and that the schedule is right. Plesk works in Dutch time.
Still stuck? Call us on +31 85 130 6429, email support@ljpc.nl or create a support ticket. We are happy to help.
Frequently asked questions
Do all customers have access to cron jobs in Plesk?
With most packages, yes. You set up scheduled tasks yourself through Scheduled Tasks in Plesk, which you open from the customer portal. If you do not see Scheduled Tasks, contact support.
What is the difference between wp-cron and a real cron job?
wp-cron is the built-in scheduler in WordPress and only starts when someone visits your site. A real cron job runs at set times through the server, independent of visitors. That is why a real cron job is more reliable.
How often should I run wp-cron?
Every 15 minutes is a safe default for most sites. If you have time-sensitive tasks, such as orders in a web shop, choose every 5 minutes.
Can I run PHP or mysqldump as a command in a scheduled task?
No. A command runs in a shielded environment with basic programs such as wget, curl, tar and zip. You schedule a PHP script with the Run a PHP script type, and for a regular backup of your database you use the backup feature of Plesk.
Why does my script work in the browser but not as a scheduled task?
A scheduled task runs your script from the command line, with the PHP version you choose under Use PHP version. Choose the same version as your website there and use full paths in your script, for example with __DIR__. Also check that Active is ticked and that the schedule is right.
To which email address does Plesk send the notifications of a task?
By default to the owner of the subscription (Subscription owner). Choose Other users under Send notifications to and fill in your own email address, so you know for sure that the notification reaches you.
Can I switch a cron job off temporarily without deleting it?
Yes. Open the task under Scheduled Tasks, untick Active and click OK. The settings are kept, so you can switch the task back on later.