I tried these two commands from SSH. They worked.
/bin/sh /path/to/magento/cron.sh
/usr/bin/php /path/to/magento/cron.php
I put exactly the same commands (either one) on cPanel Cron Job. The commands were executed, but nothing happened. What might be wrong here?
Curl command works, but i'm trying to make cron.php not accessible from outside.
Best Answer
You cron should look like the following path:-
By SSH Server use this,
Note:- Here, the first part " */5 * * * * " and " 10 * * * * " are the CRON schedule times.
OR
The command itself in this example has three parts: