Network - Server

Magento: Set Up Magento Cron Job

 

Setting up Cron In a UNIX Based Operating System

If you have shell access to your server, you can use the crontab service command. If you don't have shell access, you can set up the cron job through cPanel or similar admin. The Magento cron needs to run every five minutes, so the time configuration is:

*/5 * * * *

The full line in crontab will look like one of these (we suggest the first version):

*/5 * * * * /bin/sh MAGENTO_PATH/cron.sh
*/5 * * * * /bin/bash MAGENTO_PATH/cron.sh
*/5 * * * * /usr/bin/php MAGENTO_PATH/cron.php
*/5 * * * * /usr/local/bin/php -f MAGENTO_PATH/cron.php

where MAGENTO_PATH is the location of your Magento installation on the server.

Setting up Cron Using cPanel

Log into cPanel for your hosting account. Then find the Advanced section or the section that contains the "Cron Jobs" icon.

Click on the "Cron Jobs" icon. That'll show a list of current cron jobs as well as a form to add a new one. Enter the following setting in the "Add New Cron Job" form. Make sure to replace MAGENTO_PATH with the path to your Magento installation. If you're not sure what the path is or how to find it, you can an FTP program to browse the files on your server and find the directory that contains the cron.sh file.

After you add the new cron job, you're all set. You should see checkout data in Klaviyo within 15 minutes.

0 Bình luận

Trở về
  • Setup window xp từ usb!
  • Setup window xp từ usb!

    Tôi xin chia sẻ với các bạn cách sử dụng USB để làm bộ cài đặt windows xp, giống như một đĩa...

  • Mysql command
  • Mysql command

     # [mysql dir]/bin/mysql -h hostname -u root -p Create a database on the sql server. mysql> create database [databasename]; List...