Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an option to set a specific php.ini for cron archiving #3672

Closed
anonymous-matomo-user opened this issue Jan 15, 2013 · 1 comment
Closed
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@anonymous-matomo-user
Copy link

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
else
    PHP_BIN="$PHP_BIN -c /etc/php.local/piwik/php.ini"
fi
@mattab
Copy link
Member

mattab commented Jan 18, 2013

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

@anonymous-matomo-user anonymous-matomo-user added this to the Future releases milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants