@anonymous-piwik-user opened this Issue on January 15th 2013

I noticed for quite some time that the hourly cron archiving creates an error "Allowed memory size exhausted in ... DataTable.php". I upped the memory_limit in php.ini and it was gone for a while, but now it is back and I do not want to ever increase the memory_limit as this also affects web applications then.
Can we have an option that takes in an optional path to a php.ini, so php could be run with an argument? I've now added the following to my archive.sh, but this will get overwritten with the next update.

if test -z $PHP_BIN; then
  echo "php binary not found. Make sure php5 or php exists in PATH." >&2
  exit 1
    PHP_BIN="$PHP_BIN -c /etc/php.local/piwik/php.ini"
@mattab commented on January 18th 2013 Owner

Yes we could do it since it is a reasonnable use case! please provide a tested patch and we will consider. Thanks

This Issue was closed on January 13th 2014
Powered by GitHub Issue Mirror