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

Clarify how to Setup the archiving cronjob using Plesk in the user guide manual #15046

Closed
mattab opened this issue Oct 23, 2019 · 1 comment
Closed
Labels
c: Website matomo.org For issues related to our matomo.org website.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Oct 23, 2019

It would be valuable to setup Matomo on Plesk and document the process clearly in our user guides.
Many people setup Matomo via Plesk and we get a lot of questions about it suggesting it is not clear enough yet.

Thoughts/suggestions:

Received by email:

Hello, unfortunately a manual for Plesk is missing here. In Plesk I can't get the auto-archiving including the archive log files to work. In the Cronjob settings of Plesk Obsidian the following is configured: Task type: Execute PHP script Script path: httpdocs/console with arguments: core:archive --url=https://matomo.meine-domain.de/ > /var/www/vhosts/matomo.my-domain.de/logs/matomo-archive.log When I run the cronjob, I always get the following error message: [RuntimeException] Too many arguments. Only if I enter the following in the arguments: "core:archive --url=https://matomo.my-domain.de/" I don't get an error message. Would be coll, if you could help me. Yours sincerely

Also recently:

Can you please, provide similar "How to" for Plesk?
Thanks in advance

And also:

I created /etc/cron.d/piwik-archive
with content
MAILTO="indo@x"
0,15,30,45 * * * * root /opt/plesk/php/7.2/bin/php
/var/www/vhosts/mydomain.com/analytics.mydomain.com/matomo-v3.5.1/console core:archive --url=https://analytics.mydomain.com > /home/analytics/piwik-archive.log

but the /home/analytics/piwik-archive.log will never update
I test this with
# su root -s /bin/bash -c "/opt/plesk/php/7.2/bin/php /var/www/vhosts/mydomain.com/analytics.mydomain.com/matomo-v3.5.1/console core:archive --url=https://analytics.mydomain.com > /home/analytics/piwik-archive.log"
and its created that file, but cron.d never updated it.
Is here somthing missing?
piwik-archive is 0755 and root:root

@mattab mattab added the c: Website matomo.org For issues related to our matomo.org website. label Oct 23, 2019
@mattab mattab added this to the 3.13.0 milestone Oct 23, 2019
@mattab mattab modified the milestones: 3.13.0, 3.13.1 Nov 27, 2019
@mattab mattab modified the milestones: 3.13.1, 4.0.0 Jan 16, 2020
@mattab
Copy link
Member Author

mattab commented Jan 21, 2020

Published a new guide at https://matomo.org/faq/how-to-install/how-do-i-install-matomo-with-plesk/

Any feedback? we can close this issue in a few days if there is no feedback.

@mattab mattab closed this as completed Jan 21, 2020
@mattab mattab reopened this Jan 21, 2020
@mattab mattab closed this as completed Jan 30, 2020
@mattab mattab modified the milestones: 4.0.0, 3.13.2 Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Website matomo.org For issues related to our matomo.org website.
Projects
None yet
Development

No branches or pull requests

1 participant