cron – Setting up a Magento cronjob on godaddy

cron – Setting up a Magento cronjob on godaddy – Stack Overflow

How the heck does one get the Magento cronjob running on GoDaddy (which I really regret using for hosting, especially right now). I can find no straight forward info for this on the net. I’ve tried lots of different things – screwing with permissions, trying variations on the URL… nothing seems to be working. Help??

*NOTE – I took this screenshot in the middle of trying yet another command… I have tried:
“$HOME/html/magento/cron.php”
“$HOME/html/magento/cron.sh”
/sh/bin “$HOME/html/magento/cron.php”
/sh/bin “$HOME/html/magento/cron.sh”
/web/cgi-bin/php5 “$HOME/html/magento/cron.sh”
etc

enter image description here

For example, with the following in the command field (“$HOME/html/magento/cron.sh”) USING THE BROWSE FEATURE, I get the following error output:

/var/chroot/home/content/64/****/html/magento/cron.sh: line 9: which: command not found
/var/chroot/home/content/64/****/html/magento/cron.php: line 1: ?php: No such file or     directory
/var/chroot/home/content/64/****/html/magento/cron.php: line 2: /bin: is a directory
/var/chroot/home/content/64/****/html/magento/cron.php: line 3: /usr/bin/crontab:     Permission denied
/var/chroot/home/content/64/****/html/magento/cron.php: line 4: /usr/bin/crontab:     Permission denied
/var/chroot/home/content/64/****/html/magento/cron.php: line 5: /usr/bin/crontab:     Permission denied
/var/chroot/home/content/64/****/html/magento/cron.php: line 6: /usr/bin/crontab:     Permission denied
/var/chroot/home/content/64/****/html/magento/cron.php: line 7: syntax error near     unexpected token `('
/var/chroot/home/content/64/****/html/magento/cron.php: line 7:  * This source file is     subject to the Open Software License (OSL 3.0)

2 Answers

 

If you are trying to run a PHP script you will use a setup like this:

 /web/cgi-bin/php5 "$HOME/path/to/your/php/script.php"

If you are trying to run a bash script you would want it setup like this:

/bin/bash "$HOME/path/to/your/bash/script.sh" 
 
   

Can you try this one?

/web/cgi-bin/php5 "$HOME/html/cron.php"

It will take some time to reflect the update/refresh automatically.