solved cron job setting on GoDaddy shared linux hosting

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: