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.
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
Can you please, provide similar "How to" for Plesk?
Thanks in advance
I created /etc/cron.d/piwik-archive
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
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.