Get 30% off your WordPress Hosting with code WPSAVE10. Launch Faster. Save More!
  • 00 Days
  • 00 Hours
  • 00 Minutes
  • 00 Seconds

How do I set up a cron job? - SIRSTEVEHQ CP

Cron jobs (also referred to as scheduled tasks), are an important tool for hosting websites looking to incorporate automation into their setups.

When used correctly, websites can automatically check for updates, send out emails, take backups and much more, so it’s worth knowing how to incorporate these through SIRSTEVEHQ CP’s hosting.

What is a Cron Job?

A cron job refers to a Linux command that is scheduled to run at a specific time – this command may run a file with a script in it, or utilise a command-line interface (CLI) such as WordPress’s WP CLI to run a specific function once or multiple times per day without user input.

Some setups, such as WHMCS for Reseller Hosting, have their own cron files that run key functions at specific points during the day, such as emailing out reminders to customers and checking domain renewal dates are in sync.

Most cron jobs consist of two key parts – the command, and the interval the command runs at.

How can I set up a cron job in SIRSTEVEHQ CP?

You can set up a cron job or 'scheduled task' in the Scheduled Tasks section of your hosting packages control panel.

SIRSTEVEHQ CP -> Scheduled Tasks

large_image_6_52a53e776c.png

These are commands or jobs that are set to run regularly. They can be set to run at intervals of minutes, or the same time every hour, day or month.

On the Scheduled Tasks page there are three things to consider:

1. What command you are wanting to run?

This is usually something like a WGET to a certain domain name or a PHP script. If you want to run a particular file such as WordPress's cron you'll need to use the correct version of PHP for the website. To select a particular version of PHP to run the command you use the commands to the right of the screen.

thumbnail_image_7_420d2e6c16.png

2. How often you need your cron to run?

This is selected from the drop-down boxes under where you enter the command. You can either use the first box to run it every 5, 10, 15 minutes or you can be more specific and select particular minutes in the hour, hours in the day or days in the month for the cron to run.

3. Would you would like to have emails sent to a specified address when a cron is run?

An email will only be sent if the cron produces an output so if the cron doesn't output anything no email will be sent.

WordPress Cron Jobs

By default, WordPress uses something called WP-Cron to handle scheduled tasks like publishing scheduled posts, checking for plugin updates, and running backups. However, WP-Cron isn’t a real cron job — it only triggers when someone visits your website.

This means if your site has low traffic, or experiences long periods of inactivity, scheduled tasks might not run on time — or at all.

Why Use a Real Cron Job?

Replacing WP-Cron with a real server-side cron job ensures your scheduled tasks run reliably and on time, regardless of traffic levels. This is especially important for:

  • Low-traffic sites or maintenance-only sites
  • Time-sensitive tasks like scheduled posts or backups
  • Ecommerce stores where delays can impact inventory or orders

How to Replace WP-Cron

To disable WP-Cron and use a real cron job instead:

Edit your wp-config.php file and add:

define('DISABLE_WP_CRON', true);

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I identify a SIRSTEVEHQ CP phishing email?

Recently, we’ve noticed an increase in the number of phishing emails targeting our customers....

How do I set up Automatic Timeline Backups? - SIRSTEVEHQ CP

With our Timeline Backups product, automatic snapshots of your website files and databases are...

What is HTTP Keep-Alive? - SIRSTEVEHQ CP

HTTP Keep-Alive, also known as HTTP persistent connection, is a mechanism used to maintain an...

How can I clone a site with Timeline Backups? - SIRSTEVEHQ CP

Timeline Backups allow you to restore data between hosting packages, making them an ideal tool to...

Should I transfer my site to the WordPress platform? - SIRSTEVEHQ CP

Yes - absolutely, to get the best performance from a WordPress site it's best to transfer it to...