@anonymous-piwik-user opened this Issue on March 29th 2011

archive.sh has:
echo "php binary not found. Make sure php5 or php exists in PATH."

the documentation suggests:

MAILTO="youremail@example.com"

#5 * * * * www-data /path/to/piwik/misc/cron/archive.sh > /dev/null

-----------------END CRON TAB--

When an error occurs (eg. php memory error, timeout) the error messages

will be sent to youremail@example.com.

so if php-cli is not available, the error message will be discarded...

so this should be:
echo "php binary not found. Make sure php5 or php exists in PATH." >&2

to print the message to stderr...

as a sidenote:
php notoriously prints it's error messages (like the memory/timeout errros mentioed in the documentation above) to stdout instead of stderr, so those would likely be discarded aswell...
Keywords: cron

@mattab commented on March 29th 2011 Member

(In [4227]) Fixes #2239 Thanks for the report tthuermer!

This Issue was closed on March 29th 2011
Powered by GitHub Issue Mirror