Magento Expert Forum - Improve your Magento experience

Results 1 to 9 of 9

How to set up cron jobs in Magento?

  1. #1
    Junior Member Magento Nguyen's Avatar
    Join Date
    Jun 2015
    Posts
    958
    Thanks
    0
    Thanked 13 Times in 13 Posts

    Default How to set up cron jobs in Magento?

    All Magento seniors agree that cron jobs do help them extensively in terms of time and resource savings. As a beginner, you are fortified to enhance your ability to set up and run your first cron job following our tips shared below. Note that cron only works if the server which your Magento hosts is already setup for cronjobs.

    There are two options to setup cron jobs for a Magento server:

    1. Use cPanel to setup cronjobs

    Log onto cPanel, move to Cron jobs:
    Name:  img-1.jpg
Views: 119
Size:  28.2 KB
    Select the parameters to set up a new Cron Job:

    Name:  img-2.jpg
Views: 97
Size:  32.3 KB

    You are able to either choose quick setup in the Common Settings or select individual options for Minute, Hour, Day, Month and Weekday.Note that:

    Minute: how frequency in minutes per running time? Or at which minute of the hour it runs?

    Hour: how frequency in hours per running time? Or at which hour?

    Day: how frequency in days per running time? Or on which days of the month?

    Month: how frequency in months per running time? Or in which months of the year ?

    Weekday: On which days of the week?

    Command: php -f /absolute_path_of_your_magento_root_folder/cron.php

    Eg.php -f /home/abc/public_html/cron.php

    After you have selected the options, click “Add New Cron Job”

    2. Use ssh to setup Cron jobs:
    Click for full lession : http://www.magesolution.com/blog/set-cron-jobs-magento/

    View more threads in the same category:


  2. #2
    New member Opal's Avatar
    Join Date
    Jan 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    3. Use webcron to setup Cron jobs:
    Cron set up documentation can be found here https://www.easycron.com/cron-job-tu...ob-for-magento.

  3. #3
    Junior Member fabul0us's Avatar
    Join Date
    Jul 2015
    Location
    USA
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    thanx for sharing!

  4. #4
    Junior Member
    Join Date
    May 2014
    Posts
    49
    Thanks
    2
    Thanked 4 Times in 2 Posts

    Default

    Cron is used to schedule job in specified duration, It runs the task accordingly with the assigned time intervals. Refer this: https://goo.gl/jUxqha

  5. #5
    Junior Member aaryanmevada's Avatar
    Join Date
    Apr 2015
    Posts
    54
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default

    You should know that Magento runs cron jobs even if you don't have a daily cron job configured. Whenever Magento receives a request, it checks if there are any cron jobs to be run. Therefore, having the daily cron job would only make sense if you had no requests for an entire day.

  6. #6
    Junior Member
    Join Date
    Aug 2015
    Posts
    12
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    you should write an small app to manager cron jobs, Hava many php class related to create, remove, edit cron jobs.

  7. #7
    Junior Member techpro's Avatar
    Join Date
    Jan 2016
    Location
    New York
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    One of the major advantages to using a cron job is the easiness of coding and setting it up to run. It's nothing different than a standard command-line that is fired-off periodically by the system.

  8. #8
    Junior Member
    Join Date
    Feb 2016
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    How do I ensure that cron job is working accurately at my Magento store?

  9. #9
    Junior Member
    Join Date
    Oct 2016
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Cron job is an important component for correct Magento performance. It is widely used for running actions that are performed on schedule, such as indexing and caching, email dispatches, sitemap generation, currency rates updates, and many more actions as well.

    Today we would like to explain how to configure Magento cron job correctly. The configuration process can vary a bit depending on your site’s control panel (cPanel, Plesk, etc).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •