Archive for the ‘PHP’ Category

solved cron job setting on GoDaddy shared linux hosting

December 14, 2009

I was struggling with setting the cron job for php script on GoDaddy hosting server.

The example which GoDaddy gives to set the path of the cron job script is as follows:

/web/cgi-bin/php5 “$HOME/html/cron/yourscript.php”

But unfortunately, the above example does not work.

To make it work, remove “5” from php5 and remove the double quotes as follows:

/web/cgi-bin/php $HOME/html/cron/yourscript.php