Yizi
By:
Yizi

How to setup Cron for Magento

November 15, 2015 1.1k views
Apache Email Ubuntu

I have a normal LAMP setup with Magento installed but the CRON isn't working. Can someone tell me if the following command is right if cron.sh is located in /var/www/html/cron.sh

5 * * * * /bin/sh /var/www/html/cron.sh
1 comment
  • mysql> select messageid, entitytype, createdat, processedat from coreemailqueue;
    +------------+-------------+---------------------+--------------+
    | messageid | entitytype | createdat | processedat |
    +------------+-------------+---------------------+--------------+
    | 1 | order | 2015-11-15 20:28:02 | NULL |
    | 2 | order | 2015-11-15 21:15:02 | NULL |
    | 3 | order | 2015-11-15 22:00:37 | NULL |
    +------------+-------------+---------------------+--------------+

1 Answer

The cronjob looks correct, yes. Does it work properly if you run it manually?

/bin/sh /var/www/html/cron.sh
Have another answer? Share your knowledge.