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:
/sh/bin “$HOME/html/magento/cron.php”
/sh/bin “$HOME/html/magento/”
/web/cgi-bin/php5 “$HOME/html/magento/”

enter image description here

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

/var/chroot/home/content/64/****/html/magento/ 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/" 

Can you try this one?

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

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