Magento Expert Forum - Improve your Magento experience

Results 1 to 4 of 4

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 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 (1).jpg
Views: 189
Size:  28.2 KB
    Select the parameters to set up a new Cron Job:
    Name:  img-2 (1).jpg
Views: 173
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:
    READ FULL LESSON : 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

    If you have cron job issue with you hosting, you may try external cron job easycron.com which starts processes on the URL and a tutorial at https://www.easycron.com/cron-job-tu...ob-for-magento.

  3. #3
    Junior Member
    Join Date
    Sep 2018
    Location
    Oman, Muscat
    Posts
    2,084
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    Run and Create cron work
    Make a class inside the "Cron" envelope.
    Physically arrangement the cron plan by utilizing PHP: receptacle/magento cron:run.
    Discover a sign in the var/log/framework. ...
    Login to Magento 2 Admin board, do as the way: Stores > Configuration > Advanced > System , then changing scheduler settings per cron gathering.

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
  •