Getting Cron To Run

I can't seem to get any of my future status changes to work. The Cron Manager doesn't seem to have run at all. It says that the last run was on 01/01/1970 01:00:00.


My jobs are listed under view jobs but the date and time they shoudl have run has passed.



I'm running 3.2.2 and RHES 3 with Apache Web Server 2.0.46-44.ent.



Any idea's??

Do you have cron configured? You need to have a cron job running on your server that runs MYSOURCE_ROOT/core/cron/run.php


I think 3.2.2 requires you to also set the first run date of the cron manager to be some time other than 1/1/1970.

So i need to configure a cron job at OS level to run the run.php script every fifteen minutes or so??

Yup. The following line in /etc/crontab will work:

    */15 * * * * apache php /path/to/matrix/core/cron/run.php


That will run the Cron Manager every 15 minutes. You may need to change "apache" to another user if Apache doesn't have the appropriate OS-level permissions.

Edited to fix the command. :)

Just out of interest is this covered in any of the manuals?

Why do you pass the path to matrix??


I just ran the script as php run.php and it worked fine.

I thought it was in the System Administration manual, but it appears not to be. I will raise this with the documentation people.


Also, you're right – you don't need to pass the path. I've corrected my original post.