Wp-cron.php cronjob setup, is correct?

wordpress

#1

Hello,

I’m try to setup cronjob for my wordpress website, i going to my panel and [undefined=undefined]goodies>>cron jobs>>add new[/undefined]

and i put this in [undefined=undefined]command to run[/undefined]:

[undefined=undefined]/usr/bin/php /home/username/mywebsite.com/wp-cron.php > /dev/null 2>&1[/undefined]

is that correct???


#2

wp-cron runs automatically when people visit your site (or rather, it checks to see if it needs to run). Unless you’ve disabled wp-cron, you shouldn’t need to schedule anything. However, assuming you did, it works like this :slight_smile:

(I only suggest that because it works better on Multisite and I plan for the future. Oooohhhhmmm. )


#3

the fact is that I did it, i disable cron in wp-config.php. my question here is, should I put that code in “command to run” ??? of cron job???

Example:

command to run:

curl http://example.com/wp-cron.php


#4

Yep :slight_smile: Just put your domain instead of example.com, o’course


#5

Apparently it did not work =(, I get the following message:

Missed schedule

any recommendation?


#6

I took a look at your cron job:

The ONLY word I changed was ‘domain’

Your problem? You have ‘username’ in there and not your actual username :slight_smile:


#7

Hola, yo también tengo este problema, no he podido configurar el cron job pluggin wp-matic en Dreamhost.

Cron command:

*/20 * * * * /usr/bin/curl http://www.name.com/wp-content/plugins/wp-o-matic/cron.php?code=58f00549

WebCron-ready URL:

http://www.name.com/wp-content/plugins/wp-o-matic/cron.php?code=58f00549

y me tira el error “This field is for the command only, do not enter cron scheduling information here!”


#8

Hola manolo yo pude resolver mi problema con la siguiente solución:

http://www.websightdesigns.com/tutorials/wordpress-tutorials/wordpress-and-missed-schedule-posts/

Hello manolo I could solve my problem with the following solution :slight_smile:
[hr]
ops, i do a big mistake, thanks a loot Ipstenu-DH :smiley:


#9

I was able to add this:

curl http://www.name.com/wp-content/plugins/wp-o-matic/cron.php?code=58f00549

And cron didn’t give any errors.


#10

hello, is there a way to check that cron are setup correctly ? I do not get any email, so maybe it means that it’s fine, but how to confirm ? Thanks.


#11

To run cronjobs I use www.easycron.com which allows great control, it sends out alerts email if a cron job fails or succeeds.