MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: want2fly on 2014-01-20, 07:09:04

Title: How to properly set the cron job?
Post by: want2fly on 2014-01-20, 07:09:04
Hello friends.

I need to set the cron job for my wordpress blog to run every 5 minutes. The command that I need to run is
Code: [Select]
wget -q -O - http://mydomain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
What I did is went to Cron settings in KloxoMR and selected "5" in minutes tab, "all" in every other field.
Then in command field I typed the command
Code: [Select]
wget -q -O - http://mydomain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
About two hours later I got an email from "Cron Daemon" that said this:
Quote
/etc/cron.daily/logrotate:

error: hiawatha:7 unknown user 'www-data'
error: found error in /var/log/hiawatha/access.log , skipping
error: pure-ftpd:1 duplicate log entry for /var/log/pureftpd.log
error: found error in /var/log/pureftpd.log , skipping

I am running the latest Kloxo-MR on the Centos 6 x32. My configuration is tinydns and apache. My php runs as "Suphp worker". My server has 2 gb ram.

Could anybody please confirm that I am setting the cron job correctly?

Thank you.
Title: Re: How to properly set the cron job?
Post by: MRatWork on 2014-01-20, 12:20:34
Go to 'admin > server > (localhost) > cron scheduled tasks > add simple'.
Title: Re: How to properly set the cron job?
Post by: want2fly on 2014-01-20, 17:30:05
Mustafa,Thank you for reply.

The cron didn't work so I was wondering if I need to change command somehow.

Is "/dev/null 2>&1" part  needs to be at the end of the url or at the beginning?

How can I check if cron is working or not?




Title: Re: How to properly set the cron job?
Post by: MRatWork on 2014-01-20, 18:53:49
Try 'wget -q -O - http://mydomain.com/wp-cron.php?doing_wp_cron' without ' >/dev/null 2>&1'.
Title: Re: How to properly set the cron job?
Post by: Ann on 2014-01-25, 15:23:27
You may try online cron job service like easycron.com (http://easycron.com) as a trigger.