Cronjob
Default cron configuration. We run the archive cron job every night at 5 minutes past 2 am.
5 2 * * * /usr/bin/php /srv/www/PROJECT/current/matomo/console core:archive --force-all-websites > /srv/www/PROJECT/logs/matomo-archive.log
Nginx
Default sites
We allow the following paths:
location ~ ^/(index|matomo|piwik|js/index|plugins/HeatmapSessionRecording/configs)\.php
Tracking sites (No GUI access)
We allow the following paths: location ~ ^/(matomo|piwik)\.php$
sSMTP is used to handle mail on our servers.
- E-mails sent from: noreply@whitespace.email
- SMTP server: mail.glesys.se
You will find default settings in 1password: Glesys | Mail | whitespace.email
Test that e-mail is working with the following command:
/console core:test-email d+test@whitespace.se
https://matomo.org/faq/troubleshooting/faq_34856/
Custom e-mail settings
Add custom settings at the following url:
/index.php?module=CoreAdminHome&action=generalSettings
Mariadb / Mysql
# {{ ansible_managed }}
[mariadb]
max_allowed_packet = 64M
WP cli
Multisite
sudo -uweb -H wp search-replace https://cms.staffanstorp.stagespace.se https://cms.staffanstorp.se --network
sudo -uweb -H wp search-replace cms.staffanstorp.stagespace.se cms.staffanstorp.se wp_site wp_blogs
sudo -uweb -H wp search-replace https://cms.staffanstorp.stagespace.se https://cms.staffanstorp.se
# Caution, if needed:
# sudo -uweb -H wp search-replace cms.staffanstorp.stagespace.se cms.staffanstorp.se
# Caution, if needed:
# sudo -uweb -H wp search-replace http://cms.staffanstorp.stagespace.se https://cms.staffanstorp.se