-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
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:
- Improve the Setup auto archiving cron: https://matomo.org/docs/setup-auto-archiving/
- Possibly mention Plesk in the installation user guide: http://matomo.org/docs/installation
- We could maybe reach out to Plesk themselves who could help us even maybe spread the word about Matomo? as they seem to use Matomo and have published a plugin on the Marketplace 👍 https://plugins.matomo.org/developer/plesk
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