TimeTrex maintenance jobs not running (with Xampp on RHEL4)

Ask your questions regarding TimeTrex installation here.
Locked
rkumar
Posts: 7
Joined: Mon Jul 02, 2007 3:52 am
Location: USA
Contact:

TimeTrex maintenance jobs not running (with Xampp on RHEL4)

Post by rkumar »

Hello everyone,

I got TimeTrex installed and running with Xampp on RHEL 4. When I'm logging in. I get following error message:

"WARNING: TimeTrex maintenance jobs have not run in the last 48hours. Please contact your TimeTrex administrator immediately."

Following is the entry of /etc/crontab file:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/lampp/bin
MAILTO=ranveerkumar@gmail.com
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

* * * * * root /opt/lampp/bin/php /opt/lampp/htdocs/timetrex/classes/modules/co
re/../../../maint/cron.php > /dev/null 2>&1


When I executed command (/opt/lampp/bin/php /opt/lampp/htdocs/timetrex/classes/modules/co
re/../../../maint/cron.php) manually without any redirection, I got following message:

NOTE: Jobs are scheduled to run at specific times, therefore only some jobs are
executed each time this file is run.
Jobs Executed: 0 of 10


Any suggestions please.

Thanks in advance.
Ranveer.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

A couple things, you probably shouldn't put it in your /etc/crontab file, instead run:

crontab -e

and put it there.

Also, make sure the user it runs as is also the user your web server is running as (usually NOT root) otherwise you will be in for a world of hurt down the road. Because whatever files the maintenance jobs write won't be accessible by the web server.
rkumar
Posts: 7
Joined: Mon Jul 02, 2007 3:52 am
Location: USA
Contact:

Post by rkumar »

Thanks for support Shaun,

I got it working.


Thanks.
Ranveer.
Locked