---
title: "How to configure Magento 2 cron jobs"
source: "https://docs.nexcess.com/sites-stores/managed-magento/store-management/cron-jobs-for-magento-2-stores/"
description: "Learn how to configure Magento 2 cron jobs to initiate tasks such as reindexing, generating sitemaps, applying price rules, and other critical activities at a s…"
vertical: "Sites & Stores"
date: "2019-09-11"
last_modified: "2026-07-02"
---

# How to configure Magento 2 cron jobs

## **Overview**

Magento 2 requires multiple cron jobs to initiate tasks such as reindexing, generating sitemaps, applying price rules, and other critical activities at a specified time or date interval.

## **Step by step instructions**

Before proceeding, confirm the full server file system path to the file that you want to change is ready to run.

The following is an example of the path name: /home/user/domainname.com/html/file.extension.

1. Log in to your SiteWorx account. 
    - If you do not know your password, click **Forgot your password** on the login page.
2. Navigate to **Hosting Features > Cron Jobs**. The System Cron Management page displays any existing Cron jobs and provides options to edit, delete, or add new Cron jobs.
3. Click **Simple Interface**.  
    ![](https://docs.nexcess.com/wp-content/uploads/2026/06/1568228962483-1568228962483.png)
4. In the Add Cronjob panel, select **Every 2** from the **Minute** drop-down list.
5. In the **Script** field, specify the binary php and the path to the Magento 2 crons found below, but replace /home/example/example.com/html/ with your specific path.  
    ![](https://docs.nexcess.com/wp-content/uploads/2026/06/1568229026912-1568229026912.png)

```
php /home/example/example.com/html/bin/magento cron:run
php /home/example/example.com/html/update/cron.php
php /home/example/example.com/html/bin/magento setup:cron:run
```

6. Click **Add.**
7. After clicking **Add,** the Cron Editor will show the new cron job.
8. If you need to modify your cron job, click **Edit** under the Action column. For more information on editing a cron job, refer to [How to manage cron jobs.](https://docs.nexcess.com/sites-stores/control-panel/interworx/siteworx/manage-cron-jobs/)
