Hi

I have a shared hosting account with Godaddy and can't figure out how to set-up the cron.

I am calling it with this command:

curl http://www.example.com/cron.php

But I'm getting this error:
curl: (7) couldn't connect to host

Tried with wget but I get
failed: connection refused

The files is accessible and when I call it from my browser it runs the cron.

Any suggestions?

Comments

translector’s picture

Just type on your address bar http://example.com/cron.php or install poormanscron module.

Cheers.

GDHosting’s picture

jm.federico,

Try this Go Daddy help article: http://help.godaddy.com/article/3483

You can also create a Cron Job using our Cron Manager in the Hosting Control Center. See these articles for details on how: http://help.godaddy.com/article/3547
http://help.godaddy.com/article/3548

rkolech’s picture

I used GoDadady quick install apps to install Drupal. When you do this it automatically adds a cron job that runs hourly.
If you did a manual install and don't have this job there, add one manually. The command that is used on my auto generated job is:

/usr/bin/wget -O - -q "http://www.example.com/cron.php" > /dev/null 2>&1

Not very good at Linux so not sure what the above does, I just know it works for me. I also read somewhere that you have to wait overnight for the change to go through on the servers, not sure if this is still the case or not.

Hope this helps...

icametoplay-1’s picture

I have tried all these solutions and more and none of them work.

I am really surprised that GoDaddy does not do more to correct this whatever the challenge is. The posts they linked to here are useless and do not produce any different results.....

Still searching for an answer.....or a new host.

icametoplay-1’s picture

After much experimenting - and reading a lot of posts on various 'other' blogs and sources - I discovered that if I used the "browse" button within the GoDaddy cron manager and actually pointed it directly at the cron.php file.....it finally worked! I have no idea why the other solutions posted here - and in other threads on Drupal - would not work even though others said they did.....except that this site on the beta Grid hosting platform.

Either way - anyone else having trouble with the already mentioned and listed solutions - try setting up a new cron job and instead of writing a command - use the browse button.

johnbarneson’s picture

I also tried the browse method and above and voila, it worked.
Not sure why but it does. Your configured job will be in the following format:
/web/cgi-bin/php5 "$HOME/html/cron.php"

~John

sunward’s picture

godaddy needs to better differentiate between the different types of hosting. From shared, to Virtual Private, and to dedicated. And then with the operating system, the different IP's being used, and control panels (Plesk or C-Panel)

I am running a dedicated server, under ubuntu, on 1 of 3 IP's, but can't find the cron command.

Suggestions?

sunward’s picture

I couldn't get cron on a plesk system to work on a godaddy dedicated server.

I used crontab command at the root level:
http://drupal.org/node/36678#comment-69418

the thread contains more details on using the crontab command