Question

How to setup Cron for Magento

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
Subscribe
Share

mysql> select message_id, entity_type, created_at, processed_at from core_email_queue; ±-----------±------------±--------------------±-------------+ | message_id | entity_type | created_at | processed_at | ±-----------±------------±--------------------±-------------+ | 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 | ±-----------±------------±--------------------±-------------+


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

/bin/sh /var/www/html/cron.sh