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
-
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 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 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:
/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.
-
Go to 'admin > server > (localhost) > cron scheduled tasks > add simple'.
-
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?
-
Try 'wget -q -O - http://mydomain.com/wp-cron.php?doing_wp_cron' without ' >/dev/null 2>&1'.
-
You may try online cron job service like easycron.com (http://easycron.com) as a trigger.