Nexcess Logo

How to configure Magento 2 cron jobs

Knowledge Base Home

Notice anything different?

We've enhanced the appearance of our portal and we're working on updating screenshots. Things might look different, but the functionality remains the same.
September 11, 2019

Definition

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.

1-Access the Cron Jobs Management SiteWorx page

Before proceeding, confirm the full server file system path to the file that you want to change is ready to run. If you do not know the path, contact our 24/7 support team

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.
    • If you do not know the web address for your SiteWorx login page, either refer to your Welcome Email or contact our 24/7 support team for assistance.

  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. 

2-Add a new cron job

  1. Click Simple Interface.

  2. In the Add Cronjob panel, select Every 2 from the Minute drop-down list.
  3. In the Scriptfield, 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.


    ATTENTION: Do not remove the space between php and the full path to the file.

    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

  4. Click Add.

3-Verify the cron job

  1. After clicking Add, the Cron Editor will show the new cron job.
  2. 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.


For 24-hour assistance any day of the year, contact our support team by email or through your Client Portal.

Jason Dobry
We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.