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

Piwik Core Archive w/ Custom php.ini #9764

Closed
bmoore9 opened this issue Feb 12, 2016 · 1 comment
Closed

Piwik Core Archive w/ Custom php.ini #9764

bmoore9 opened this issue Feb 12, 2016 · 1 comment
Assignees
Labels
answered For when a question was asked and we referred to forum or answered it.
Milestone

Comments

@bmoore9
Copy link

bmoore9 commented Feb 12, 2016

In my environment, piwik core archives happen on a server that houses multiple php versions. For the core archive I use php5.5 and the archive is invoked by
/usr/bin/php55 -c /etc/php5.5/php.ini /www/piwik/console core:archive --url=http://example.com

Because of the multiple PHP versions I use a specific php.ini file that I specify on the command line. While core archive runs, it seems it reinvokes the requested PHP executable for each segment, but it doesn't preserve the specified php.ini file.

/usr/bin/php55 -q /www/piwik/console climulti:request -q --piwik-domain='example.com' --superuser 'module=API&method=API.get&idSite=39&period=day&date=last2&format=php&segment=deviceType%3D%3DSmartphone%2CdeviceType%3D%3DPhablet&trigger=archivephp&pid=7ae1e41fe89b3f4ca1bbfff7033ea4b125d927aeebbf2a3a976f22d31ba58c735f71702b105d15cf4b39bfc3b3632a86e86d1'

Ideally this request would look like

/usr/bin/php55 -c /etc/php55/php.ini -q /www/piwik/console climulti:request -q --piwik-domain='example.com' --superuser 'module=API&method=API.get&idSite=39&period=day&date=last2&format=php&segment=deviceType%3D%3DSmartphone%2CdeviceType%3D%3DPhablet&trigger=archivephp&pid=7ae1e41fe89b3f4ca1bbfff7033ea4b125d927aeebbf2a3a976f22d31ba58c735f71702b105d15cf4b39bfc3b3632a86e86d1'

@tsteur
Copy link
Member

tsteur commented Feb 12, 2016

I think what you want was maybe developed in Piwik 2.16 see #9500

Use eg --php-cli-options="-c /etc/php55/php.ini" when calling the archiver. I'll close it for now but let me know in case it does not solve the issue, then we can reopen the issue.

@tsteur tsteur closed this as completed Feb 12, 2016
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Feb 12, 2016
@tsteur tsteur added this to the 2.16.1 milestone Feb 12, 2016
@tsteur tsteur self-assigned this Feb 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants