Magento – cron job command in Cpanel

ce-1.7.0.2configurationcron

I am using Magento CE 1.7.0.2 on Linux, cPanel environment.

Search for proper command for cron job in cpanel

So far I got:

  1. PATH to PHP /home/USERNAME/PATH_TO_MAGENTO/cron.php
  2. wget -O /dev/null -q http://www.YOURDOMAIN.com/PATH_TO_MAGENTO/cron.php

What is difference in both command and which one is better?

Best Answer

I simply use the GUI provided by the cPanel: Cron Job in Cpanel

Just you need to select the interval for the cron and use command as:

php -f /home/<cpanelUser>/public_html/path-to-magento/cron.php

and you are done!

Related Topic