Skip to content

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

@mattab

Description

@mattab

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: Website matomo.orgFor issues related to our matomo.org website.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions