How to Setup Cron for Magento

Setting up the cron job using a CPanel

  1. Open settings of cron jobs in your control panel.
  2. Before setting up a new cron job, check that it has not been set up yet.
  3. Add a new cron job with the following parameters:
    • Minute: *
    • Hour: *
    • Day: *
    • Month: *
    • Weekday: *
    • We suggest to set cron job execution time to every 5 minutes: */5 * * * *
    • Command: {{php_path}} -f {{magento_path}}/cron.php >> {{magento_path}}/var/log/cron.log 2>&1 image

Problems with cron

If you have installed cronjob, but still have problems with cron or not sure if cron is running, try to install a free extension AOE Scheduler. This extension can show you the status of cron and cron tasks including a timeline view.

Setting up the cron job using a Plesk

  1. Open settings of cron jobs in your control panel.
  2. Before setting up a new cron job, check that it has not been set up yet.
  3. Add a new cron job with the following parameters:

    • Minute: *
    • Hour: *
    • Day: *
    • Month: *
    • Weekday: *
    • We suggest to set cron job execution time to every 5 minutes: */5 * * * *
    • Command: {{php_path}} -f {{magento_path}}/cron.php >> {{magento_path}}/var/log/cron.log 2>&1

    plesk

Problems with cron

If you have installed cronjob, but still have problems with cron or not sure if cron is running, try to install a free extension AOE Scheduler. This extension can show you the status of cron and cron tasks including a timeline view.

Setting up the cron job via SSH

  1. Login to your server
  2. Before setting up a new cron job, check that it has not been set up yet. Use the following command to get a list of cron jobs:

    crontab -l

  3. To add a new cron task, open crontab for editing:

    crontab -e

  4. Add the following record to the end of the list of jobs:

    {{time_type}} {{php_path}} -f {{magento_path}}/cron.php >> {{magento_path}}/var/log/cron.log 2>&1

Problems with cron

If you have installed cronjob, but still have problems with cron or not sure if cron is running, try to install a free extension AOE Scheduler. This extension can show you the status of cron and cron tasks including a timeline view.

Setting up the cronjob on Windows

Windows has a Scheduled Tasks service which is accessible from the Control Panel.
Go to the scheduled task manager and add a task to run the folllowing command:

{{php_path}} C:{{magento_path}}\cron.php

To read more information how to create Scheduled Tasks on Windows, follow this link

Problems with cron

If you have installed cronjob, but still have problems with cron or not sure if cron is running, try to install a free extension AOE Scheduler. This extension can show you the status of cron and cron tasks including a timeline view.

Setting up the cronjob

  1. Open settings of cron jobs in your control panel.
  2. Before setting up a new cron job, check that it has not been set up yet.
  3. Create a new cron job and add the following record to the end of the list of jobs:

    {{time_type}} {{php_path}} -f {{magento_path}}/cron.php >> {{magento_path}}/var/log/cron.log 2>&1

Problems with cron

If you do not have access to crontab on your service, you can set up the page that needs to be run periodically as a Home Page in you personal computer browser: <your_domain>/cron.php. Every time you open this page, it will execute the scheduled task(s) on your server.

You could also set up a Scheduled Task on a computer to which you have access and which is usually running. It could then access a web accessible page that will run a cron job. In UNIX/BSD/Linux it can be done with wget or curl utilities.

Lastly, if either of these won’t work for you, there are a number of online cron services (complete list: http://onlinecronservices.com, http://onlinecronjobs.com) that may be useful. Many are free, but have restrictions on execution frequency or job count.

If you have installed cronjob, but still have problems with cron or not sure if cron is running, try to install a free extension AOE Scheduler. This extension can show you the status of cron and cron tasks including a timeline view.

General Manuals