Forums | Mahara Community

Support /
Cronjob root: not found


anonymous profile picture
Account deleted
Posts: 17

29 May 2014, 2:12

Hi Folks 

I have a new install of Mahara 1.9 I got up and running yesterday on Debian 7.5

I'm trying to do some of the tasks post installation.

Mahara is telling me my cron is not running properly.

When i check the log file I see this line

/bin/sh: 1: root: not found

Below is the line I added  to run the job

* * * * * www-data php /path/to/mahara/htdocs/lib/cron.php >> /path/to/mahara/cron.log 2>&1
Thanks
anonymous profile picture
Account deleted
Posts: 17

29 May 2014, 2:25

Actuall I removed the "user" from the line and when I check the log file it runs but Mahara still shows an alert that cron is not running properly

Dirk Meyer's profile picture
Posts: 425

29 May 2014, 10:46

Maybe change the red part to where your mahara lives.

 
* * * * * www-data php /path/to/mahara/htdocs/lib/cron.php >> /path/to/mahara/cron.log 2>&1


Aaron Wells's profile picture
Posts: 896

29 May 2014, 12:23

Heh, yeah, this is actually a fairly common mistake. Smile

You've got to read carefully when pasting in things like this because the instructions often have placeholder paths like these in them, with the intent that you'll replace it with the actual path.

Cheers,

Aaron

anonymous profile picture
Account deleted
Posts: 17

30 May 2014, 0:41

Thanks

5 results