Is www-data the user your webserver is running under?
when I run top in terminal I get an answer fromscreen:
1234 www-data 16 0 300m 79m 62m S 19 3.9 1:24.79 apache2
so I guess, that www-data is the user apache runs under.
Where from do you conclude that the cron is being executed?
I think the script is run, because when I test the command with “sh” it gives me xml output in console, for day/month/year
as I wrote earlier.
Try removing the “> /dev/null” part to get hopefully some output (and maybe errors) from the script.
I get some output, but only in the terminal, not in Piwik. So should I try?
For conclusion again:
the cronjob is set to 0 * * * * www-data command
I dont get an output in piwik interface, after logging in. at no time. It doesnt show results, since the crontab is set active.
Only when I test the cronjob in the terminal, the PIWIK interface is filled with data.
After the cronjob runs as planned, the interface in PIWIK is emptied again, back to the first day the cronjob was set (two days back from today). There are no files.
When I test the crontab with
or as described in the piwik doc, THEN the PIWIK interface is fille dwith data again and will be deleted again, when the cronjob runs automatically the next time (next full hour).
What can this be?
In the meantime I will try to left the /dev/null out, because it will run in 9 minutes.
Thanks so far.