Here is the string I entered into crontab (as root, of course):
5 * * * * www-data /usr/bin/php5 /var/www/piwik/misc/cron/archive.php --url=http://localhost/piwik/ > /home/[uname]/projects/[project-directory]/piwik-reports/piwik-archive.log
The actual string uses my dyndns mapped domain name instead of localhost.
Here is the message I get in an email:
/bin/sh: 1: www-data: not found
A log file was generated but it was empty, 0 bytes. Piwik is installed locally on a Debian Wheezy 64bit box.
Thanks.
(Yeah, I searched the forum as well as the FAQs)
www-data is example of user. you can use root to run this archive cron job or other user that it have permission to run.
www-data exists on my box and owns my web root. However, I shall try root.
/bin/sh: 1: root: not found
Anybody know what’s going on here?
matthieu
(Matthieu Aubry)
December 10, 2012, 1:05am
5
remove the root or www-data and try again
Actually, I removed the cronjob. Are you suggesting that I run the cron job with no user?
[quote=ReliefAshama]
Actually, I removed the cronjob. Are you suggesting that I run the cron job with no user?[/quote]
Well thats definatelly seems to be so.